telephone formatting

alex_ea_2a

Member
Joined
Mar 2, 2006
Messages
8
Programming Experience
Beginner
How can I make a text box to be formatted (###)###-####. Is it possible to do it just like is done in access?
 
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.
 
maskbox.dll

is it true that i can load a file maskbox.dll and then drag it into the form?? if so, where can i download that file?
 
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).
 
Back
Top