Export (0) Print
Expand All
Expand Minimize

Control.IsInputChar Method

Determines if a character is an input character that the control recognizes.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

protected virtual bool IsInputChar (
	char charCode
)
protected boolean IsInputChar (
	char charCode
)
protected function IsInputChar (
	charCode : char
) : boolean
Not applicable.

Parameters

charCode

The character to test.

Return Value

true if the character should be sent directly to the control and not preprocessed; otherwise, false.

Call the IsInputChar method to determine whether the character specified by the charCode parameter is an input character that the control wants. This method is called during window message preprocessing to determine whether the specified input character should be preprocessed or sent directly to the control. If IsInputChar returns true, the specified character is sent directly to the control. If IsInputChar returns false, the specified character is preprocessed and only sent to the control if it is not consumed by the preprocessing phase. The preprocessing of a character includes checking whether the character is a mnemonic of another control.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, 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, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft