System.Windows.Forms.Form.ProcessDialogKey Method

Processes a dialog box key.

Syntax

protected override bool ProcessDialogKey (Keys keyData)

Parameters

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

Returns

true if the keystroke was processed and consumed by the control; otherwise, false to allow further processing.

Remarks

The Form.ProcessDialogKey(Keys) method overrides the base ContainerControl.ProcessDialogKey(Keys) implementation to provide additional handling of the RETURN and ESCAPE keys in dialog boxes. The method performs no processing on keystrokes that include the ALT or CONTROL modifiers.

Requirements

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