BeforeSendControlKeyEventHandler Event
Handles the BeforeSendControlKey event to permit users to modify a control key value or cancel a send control key action before it is sent.
To cancel the action, set the Cancel property of the BeforeSendControlKeyEventArgs object passed to the event handler to true.
Public Delegate Function BeforeSendControlKeyEventHandler( _
ByVal As Object, _
ByRef As Integer _
) As Boolean
Parameters
- sender
- The source of the event.
- key
- Control Key.
Return Value
A boolean value that determines whether the event is cancelled.
If set to false (the default), the event is cancelled and the key is not sent to the host.
If set to true, the key is sent to the host.