MaskedTextBox.AsciiOnly Property

 

Gets or sets a value indicating whether the MaskedTextBox control accepts characters outside of the ASCII character set.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public bool AsciiOnly { get; set; }

Property Value

Type: System.Boolean

true if only ASCII is accepted; false if the MaskedTextBox control can accept any arbitrary Unicode character. The default is false.

If true, AsciiOnly restricts user input to the characters a-z and A-Z. ASCII control characters are not allowed.

.NET Framework
Available since 2.0
Return to top
Show: