Masked Text Box
A Masked Text Box control uses a mask to distinguish between proper and improper user input.
Using a masked text box, you can specify the following input without writing any custom validation:
- Required input characters.
- Optional input characters.
- The type of input expected at a given position in the mask; for example, a digit, or an alphabetic or alphanumeric character.
- Mask literals, or characters that should appear directly in the MaskedTextBox control; for example, the hyphens (-) in a phone number, or the currency symbol in a price.
- Special processing for input characters; for example, to convert alphabetic characters to uppercase.
See Common Controls to view the usage and description of the properties for this control.