m66n / ipaddresscontrollib

Automatically exported from code.google.com/p/ipaddresscontrollib
Other
61 stars 25 forks source link

Support pasting? #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 9 years ago
This is a very nice control. Would it be possible to support pasting an address 
like in WC_IPADDRESS? It lets you do it via ctrl-v or the context menu (which 
appears to be disabled here). Thanks!

Original issue reported on code.google.com by mark.wat...@gmail.com on 13 Mar 2012 at 8:27

GoogleCodeExporter commented 9 years ago
It doesn't look like it would be too difficult to add this. Which version of 
Visual Studio are you using?

Original comment by anotherc...@gmail.com on 13 Mar 2012 at 9:19

GoogleCodeExporter commented 9 years ago
It's a VS2008 project that targets the 2.0 Framework.

Original comment by mark.wat...@gmail.com on 13 Mar 2012 at 11:35

GoogleCodeExporter commented 9 years ago
I've checked in some code (Revision 57) that allows a context menu on 
right-click for the Visual Studio 2008 project. If what is pasted into a field 
can be interpreted as an integer, then that will be pasted into the field. 
Otherwise the text will be pasted into the entire control. Attached is a 
release DLL built with VS2008 that targets the 2.0 Framework.

Original comment by anotherc...@gmail.com on 14 Mar 2012 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
Terrific--thanks!

Original comment by mark.wat...@gmail.com on 15 Mar 2012 at 1:39

GoogleCodeExporter commented 9 years ago
Was this implemented in the VS2010 dll as well? I am currently unable to paste 
a string like 192.168.1.12 into the control with the native Ctrl-V. Am I 
missing something or not implementing it correctly?  Thanks!

Original comment by spcro...@gmail.com on 8 Sep 2014 at 2:29

GoogleCodeExporter commented 9 years ago
The pre-built binary files (corresponding with revision 55 in source control) 
do not have paste. The source code for the VS2010 project (as of revision 56) 
has paste. I've attached a zip file containing the most current revision of the 
VS2010 code. Or you could use Subversion to grab them. And I've attached a 
release build targeting ".Net Framework 4."

Original comment by anotherc...@gmail.com on 8 Sep 2014 at 6:55

Attachments:

GoogleCodeExporter commented 9 years ago
Perfect!! Works like a charm. Thank You!!

Original comment by spcro...@gmail.com on 8 Sep 2014 at 7:15