System.Windows.Forms.ToolStripItem.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.IsInputChar(char) method during window-message preprocessing to determine whether the specified key is a regular input key that should be sent directly to the System.Windows.Forms.ToolStripItem or a special key (such as PAGE UP, PAGE DOWN, ENTER, ESC, TAB, or arrow keys) that should be preprocessed. In the latter case, the key is sent to the System.Windows.Forms.ToolStripItem only if it is not consumed by the preprocessing phase.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0