TechNet
Export (0) Print
Expand All

ToolStripItem.IsInputKey Method (Keys)

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected internal virtual bool IsInputKey(
	Keys keyData
)

Parameters

keyData
Type: System.Windows.Forms.Keys

One of the Keys values.

Return Value

Type: System.Boolean

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

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 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 ToolStripItem only if it is not consumed by the preprocessing phase.

UIPermission

For all windows for inheriting classes to call this method. Associated enumeration: the AllWindowsvalue of System.Security.Permissions.UIPermissionWindow

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft