Arguments for key press events
Constructors
KeyEventArgs
#Initializes a new instance of the KeyPressEventArgs class for a character key press
Parameters:
| keyData (Keys) | Key and modifiers that were pressed |
| keyEventType (KeyEventType) | Type of key event |
| keyChar (char? = null) | Character equivalent |
Properties
Handled
#Gets or sets a value indicating that this event was handled by user code
Remarks: If you pass true for this, typically the key press will not be passed to the control for event processing. This also allows controls to handle key combinations that would otherwise be handled as a shortcut in the menu or toolbar items.
KeyData
#Methods
IsKeyDown
#Determines whether the specified key and modifier was pressed