The KeyPreviewEventArgs class implements argument of the OnKeyPreview event.
Constructor name | Brief description | |
The Create constructor creates an argument of the OnKeyPreview event. |
Property name | Brief description | |
Cancel | The Cancel property determines whether the next event related to the keys pressing occurs. | |
KeyMessage | The KeyMessage property returns the value that indicates why the OnKeyPreview event was generated. |
Property name | Brief description | |
Key | The Key property determines a code of the key that was pressed or released. | |
ShiftState | The ShiftState property returns the value that corresponds to the state of auxiliary keys (SHIFT, ALT and CTRL) when the keyboard actions are executed. |
See also: