InfoConnect for Unisys
BeforeSendKeys Event (IIbmScreen)


Occurs before a data key is sent to the host.
Syntax
'Declaration
 
<SuppressMessageAttribute(Category="Microsoft.Design", 
   CheckId="CA1009:DeclareEventHandlersCorrectly", 
   Scope="", 
   Target="", 
   MessageId="", 
   Justification="")>
Event BeforeSendKeys As BeforeSendKeysEventHandler
'Usage
 
Dim instance As IIbmScreen
Dim handler As BeforeSendKeysEventHandler
 
AddHandler instance.BeforeSendKeys, handler
[SuppressMessage(Category="Microsoft.Design", 
   CheckId="CA1009:DeclareEventHandlersCorrectly", 
   Scope="", 
   Target="", 
   MessageId="", 
   Justification="")]
event BeforeSendKeysEventHandler BeforeSendKeys
Event Data

The event handler receives an argument of type BeforeSendKeysEventArgs containing data related to this event. The following BeforeSendKeysEventArgs properties provide information specific to this event.

PropertyDescription
CancelGets or sets the Cancel property that indicates whether the user wants to cancel the key action.  
ColumnGets the current column position of the cursor.  
KeysGets or sets the Keys property that permits the user to inspect or modify the keys value.  
RowGets the current row position of the cursor.  
Remarks
The data key can be triggered from the keyboard, an application programming interface, or a macro.

SendKeys method triggers a BeforeSendKeys event for each SendKeys method invocation.

See Also