The designer has a useful set of predefined masks such as date time formats, phone numbers, and zip codes.You can access the predefined mask via the Property Pane: Or directly in the designer: 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.Set this property if you are specifically targeting a culture that is not the current default (English (United States) for US machines).This effects the format of the date time entries and these changed will be reflected when selecting predefined masks as mentioned above.
The following examples will help demonstrate the difference between the two properties: Partially completed phone number: The property gets or sets the text as it is currently displayed to the user.An example mask for a US phone number is a follows: (999) 000-0000 In this mask the first three digits are optional and the last seven are required.The parentheses are considered Literals, which means the user cannot altered them.The decimal (.), thousandths (,), time (:), date (/), and currency ($) symbols default to displaying those symbols as defined by the application's culture.
You can force them to display symbols for another culture by using the A date (day, numeric month, year) in international date format.
Use this method to determine if the content of the Mask Text Box is valid.