System.Windows.Forms.Control.IsInputKey Method

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

Syntax

protected virtual bool IsInputKey (Keys keyData)

Parameters

keyData
One of the System.Windows.Forms.Keys values.

Returns

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

Remarks

Call the Control.IsInputKey(Keys) method to determine whether the key specified by the keyData parameter is an input key that the control wants. This method is called during window message preprocessing to determine whether the specified input key should be preprocessed or sent directly to the control. If Control.IsInputKey(Keys) returns true, the specified key is sent directly to the control. If Control.IsInputKey(Keys) returns false, the specified key is preprocessed and only sent to the control if it is not consumed by the preprocessing phase. Keys that are preprocessed include the TAB, RETURN, ESC, and the UP ARROW, DOWN ARROW, LEFT ARROW, and RIGHT ARROW keys.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0