Where did the IP Adress control gone?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am new to windows forms, and I can't figure out how to create an IP address control as part of my form, using MFC there was no problem dragging this kind of control from the tools menu, this type of control doesn't seem to exists in .NET......
How do I create an IP address control using c#??????

Thanks, Guy
 
Hi,

If this is an OCX control, you can actually use it in .NET by adding the
corresponding control to the toolbox from the COM tab of the Customize
Toolbox dialog.

If not - you should create a new user control, throw four text boxes and
some labels there, restrict each text box to 3 characters max, handle the
textboxes' KeyPress event not restrict input to digits only and when the dot
is typed, switch focus to the next control.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Guy said:
Hi,

I am new to windows forms, and I can't figure out how to create an IP
address control as part of my form, using MFC there was no problem dragging
this kind of control from the tools menu, this type of control doesn't seem
to exists in .NET.......
 
Back
Top