Just wanted you to know .Net 2.0 has got this type of control, the MaskedTextBox
If you're stuck in .Net 1.1 then it is a matter of a simple validation of the inputted text to see if it meets the criteria you specified, like this regular expression: ^(\d{3})\d{3}-\d{4}$
The ActiveX Microsoft Masked Edit Control 6.0 is also to your avail.
You don't have to download it, it is part of Windows system.
Add Item to your Toolbox and browse the COM Components page in the dialog that appears, look for "Microsoft Masked Edit Control 6.0" (msmask32.ocx).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.