Επεξεργασία

Κοινή χρήση μέσω


Form.ProcessDialogKey(Keys) Method

Definition

Processes a dialog box key.

protected:
 override bool ProcessDialogKey(System::Windows::Forms::Keys keyData);
protected override bool ProcessDialogKey (System.Windows.Forms.Keys keyData);
override this.ProcessDialogKey : System.Windows.Forms.Keys -> bool
Protected Overrides Function ProcessDialogKey (keyData As Keys) As Boolean

Parameters

keyData
Keys

One of the 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 ProcessDialogKey method overrides the base ContainerControl.ProcessDialogKey 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.

Applies to

See also