Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

maskedText Box, IP address

Status
Not open for further replies.

steve1rm

Programmer
Aug 26, 2006
255
GB
Hello,

I have a maskedTextBox and have set a custom format for inputting an IP Address.

Custom format ###.###.###.###

And have used the string replace(" ","") to remove any white spaces.

However, the dots do not come out after the user has entered the IP address

for example 12.123.566.54

Will come out like: 1212356654.

Does anyone know a better way to do this.

Many thanks for any suggestions,

Steve
 
Format it with -'s instead of .'s, and then replace them.

###-###-###-###

-David
2006 & 2007 Microsoft Most Valuable Professional (MVP)
2006 Dell Certified System Professional (CSP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top