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 format provider, as determined by the control's FormatProvider property. The actual display character used will be the date symbol appropriate to the format provider, as determined by the control's FormatProvider property.Ĭurrency symbol. The actual display character used will be the time symbol appropriate to the format provider, as determined by the control's FormatProvider property.ĭate separator. The actual display character used will be the thousands placeholder appropriate to the format provider, as determined by the control's FormatProvider property. The actual display character used will be the decimal symbol appropriate to the format provider, as determined by the control's FormatProvider property. 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.
#Vb net 2010 preload text box plus
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. The standard provider specifies a masking language based upon the one used by the Masked Edit control in Visual Basic 6.0, and should be very familiar to users migrating from that platform. The masking language used by MaskedTextBox is defined by its associated MaskedTextProvider. Mask must be a string composed of one or more of the masking elements, as shown in the following table. Mask is the default property for the MaskedTextBox class. Invalid masks include masks containing non-printable characters. The string supplied to the Mask property is not a valid mask.