Export (0) Print
Expand All

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:
property bool AsciiOnly {
	bool get ();
	void set (bool value);
}
/** @property */
public boolean get_AsciiOnly ()

/** @property */
public void set_AsciiOnly (boolean value)

public function get AsciiOnly () : boolean

public function set AsciiOnly (value : boolean)

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft