Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / BeforeSendControlKeyEventHandler Event
The source of the event.
Control Key.
In This Topic
    BeforeSendControlKeyEventHandler Event
    In This Topic
    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.

    Syntax
    Public Delegate Function BeforeSendControlKeyEventHandler( _
       ByVal sender As Object, _
       ByRef key 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.

    See Also