Validation using the Masked TextBox

Use this information to help you configure a Masked TextBox control.

SectionTitle

The Masked TextBox control has all the usual TextBox properties with an additional Mask property. At configuration time you can enter the mask and specify the format of the mask. The following illustration provides an example.

The following illustration shows the text box at run-time. An underscore character (_) indicates that a letter or digit is expected.