Textbox instant formating/checking

Ok I know there is a way for text boxes to be set up, when a user is typing in information it will automatically format it.  For example, the user types in 9 numbers, but the text box knows to put in the -'s because it is a social security number. 000-00-0000.  The text box automatically inserts the -'s making it easier on the user. Example 2, user types in 10 numbers, but the textbox automatically formats it as (000) 000-0000.  As for an example of a catch, if users finger accidentally hits the P key instead of 0 when entering into a social, the keystroke will be ignored.  

DataFormat property is not it, or at least i dont believe it is it.  I thought about using the masking command, but it doesnt recognize it.  Is there a library I need to include in the references to use that? Or is there another way, without tons of code to check every possible problem.

Thank you for your time,

David J. Pileggi Jr.
LVL 4
djpileggiAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
nutwissConnect With a Mentor Commented:
no, include the Masked edit box in your project.
0
 
djpileggiAuthor Commented:
Well done, there are so many components available.  Sometimes we need more than one brain to keep track of them all.  Well done.
0
All Courses

From novice to tech pro — start learning today.