'Usage
Dim instance As MaskedTextBox
Dim mask As String
Dim cultureInfo As CultureInfo
Dim allowPromptAsInput As Boolean
Dim promptChar As Char
Dim passwordChar As Char
Dim restrictToAscii As Boolean
Dim value As MaskedTextProvider
value = instance.CreateMaskedTextProvider(mask, cultureInfo, allowPromptAsInput, promptChar, passwordChar, restrictToAscii)
Parameters
mask
The string that will be used as the input mask.
cultureInfo
The CultureInfo that will be used by the masked-text provider.
allowPromptAsInput
true if the prompt char should be considered as a valid input character; false, otherwise. By default, true.
promptChar
A character that represents the positions in the masked text box that require input. By default, "_" (underscore).
passwordChar
A character that represents the character to used to mask a password.
restrictToAscii
true if non-ASCII characters are accepted; false otherwise. By default, false.
Requirements
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2