![]() All non-mask elements will appear as themselves within MaskedTextBox. “\” is the escape sequence for a backslash. Escapes a mask character, turning it into a literal. Converts all characters that follow to uppercase.ĭisable a previous shift up or shift down.Įscape. The actual character displayed will be the currency symbol appropriate to the culture. The actual display character used will be the date symbol appropriate to culture.Ĭurrency symbol. The actual display character used will be the time symbol appropriate to the culture.ĭate separator. The actual display character used will be the thousands placeholder appropriate to the culture. ![]() ![]() The actual display character used will be the decimal symbol appropriate to the culture. This mask element behaves like the “A” element.ĭecimal placeholder. If the AsciiOnly property is set to true, the only characters it will accept are the ASCII letters a-z and A-Z. This mask element behaves like the “a” element.Īlphanumeric, optional. If the AsciiOnly property is set to true, this element behaves like the “?” element.Īlphanumeric, required. If the AsciiOnly property is set to true, this element behaves like the “L” element.Ĭharacter, optional. This mask element is equivalent to ? in regular expressions.Ĭharacter, required. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to in regular expressions. Plus ( ) and minus (-) signs are allowed. If this position is blank in the mask, it will be rendered as a space in the Text property. This element will accept any single digit between 0 and 9.ĭigit or space, optional. If you need to create you own format, please refer to the following table or go to the Mask Property MSDN Help Page for more details. You can access the predefined mask via the Property Pane: The designer has a useful set of predefined masks such as date time formats, phone numbers, and zip codes. You can define your own custom mask or preferably select from a predefined set using the designer. Use the Mask property to limit the textbox’s input to a specific format. This property sets the string governing the input for this control. By using a mask, you can specify the format of the input without custom validation. Use the MaskedTextBox to distinguish between proper and improper user input. Represents an enhanced text box control that supports a declarative syntax for accepting or rejecting user input. User Rating: 5 / 5 Please Rate MaskedTextBox Control
0 Comments
Leave a Reply. |