System.Windows.Forms.ToolStripItem.ProcessDialogKey Method

Processes a dialog key.

Syntax

protected virtual bool ProcessDialogKey (Keys keyData)

Parameters

keyData
One of the System.Windows.Forms.Keys values that represents the key to process.

Returns

true if the key was processed by the item; otherwise, false.

Remarks

This method is called during message preprocessing to handle the ENTER and SPACEBAR keys in order to raise the ToolStripItem.Click event. This method is called only if the Control.IsInputKey(Keys) method indicates that the item is not processing the key.

Requirements

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