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.
Property | Description |
---|---|
Cancel | Gets or sets the Cancel property that indicates whether the user wants to cancel the key action. |
Column | Gets the current column position of the cursor. |
Keys | Gets or sets the Keys property that permits the user to inspect or modify the keys value. |
Row | Gets the current row position of the cursor. |
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.