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!

Control.ProcessKeyEventArgs

Processes a key message. This method is called when a control receives a keyboard message. The method is responsible for generating the appropriate key events for the message by calling OnKeyPress(), onKeyDown(), or onKeyUp(). The m parameter contains the window message that must be processed. Possible values for the m.msg field are WM_CHAR, WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP, WM_SYSKEYUP, and WM_IMECHAR. When overriding processKeyEventArgs(), a control should return true to indicate that it has processed the key. For keys that aren't processed by the control, the result of "base.processKeyEventArgs()" should be returned. Controls will seldom, if ever, need to override this method.

[Visual Basic]
Overridable Protected Function ProcessKeyEventArgs( _
   ByRef m As Message _
) As Boolean
[C#]
protected virtual bool ProcessKeyEventArgs(
   ref Message m
);
[C++]
protected: virtual bool ProcessKeyEventArgs(
   Message** m
);
[JScript]
protected function ProcessKeyEventArgs(
   m : Message
) : Boolean;

Parameters

m
window message to process.

Return Value

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

See Also

Control Class | Control Members | System.WinForms Namespace