Textbox instant formating/checking
Posted on 2001-07-30
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.