Maskedtextbox formatting for an IP address

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi Everyone,

Ive been trying to format a Maskedtextbox so that I can enter an IP address. Ive enterd the mast as ###.###.###.### but obviously I have to use all three digits ie 192.168.001.001 for the mask to work correctly. Is there a way I can have it so in each octect only the 1st value is required, and the other two optional.

Also, once this is working is there a way to specifically extract parts of the IP address? Ie if a class C is entered, is there a way to extract only the values in the last octect.

Thanks

David


View the full article
 
Back
Top