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.AddOnKeyPress

Adds an event handler for the keyPress event. The keyPress event occurs when the user presses a key.

[Visual Basic]
Overridable Public Sub AddOnKeyPress( _
   ByVal handler As KeyPressEventHandler _
)
[C#]
public virtual void AddOnKeyPress(
   KeyPressEventHandler handler
);
[C++]
public: virtual void AddOnKeyPress(
   KeyPressEventHandler* handler
);
[JScript]
public function AddOnKeyPress(
   handler : KeyPressEventHandler
);

Parameters

handler
New handler to install for this event.

See Also

Control Class | Control Members | System.WinForms Namespace | RemoveOnKeyPress