Export (0) Print
Expand All
Expand Minimize

Control.IsInputKey Method

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

[Visual Basic]
Protected Overridable Function IsInputKey( _
   ByVal keyData As Keys _
) As Boolean
[C#]
protected virtual bool IsInputKey(
 Keys keyData
);
[C++]
protected: virtual bool IsInputKey(
 Keys keyData
);
[JScript]
protected function IsInputKey(
   keyData : Keys
) : Boolean;

Parameters

keyData
One of the Keys values.

Return Value

true if the specified key is a regular input key; otherwise, false.

Remarks

Call the IsInputChar method during window-message preprocessing to determine whether the specified key is a regular input key that should be sent directly to the control or a special key (such as PAGE UP, PAGE DOWN, ENTER, ESC, TAB, or arrow keys) that should preprocessed. In the latter case, the key is sent to the control only if it is not consumed by the preprocessing phase.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Control Class | Control Members | System.Windows.Forms Namespace | Keys | IsInputChar

Show:
© 2015 Microsoft