NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Form.ProcessDialogKey

Processes a dialog key. Overrides Control.processDialogKey(). This method implements handling of the RETURN, and ESCAPE keys in dialogs. The method performs no processing on keys that include the ALT or CONTROL modifiers.

[Visual Basic]
Overrides Protected Function ProcessDialogKey( _
   ByVal keyData As Keys _
) As Boolean
[C#]
protected override bool ProcessDialogKey(
   Keys keyData
);
[C++]
protected: override bool ProcessDialogKey(
   Keys keyData
);
[JScript]
protected override function ProcessDialogKey(
   keyData : Keys
) : Boolean;

Parameters

keyData
key code and modifier flags.

Return Value

true to consume the key, false to allow further processing.

See Also

Form Class | Form Members | System.WinForms Namespace