KeyPreviewEventArgs

Description

The KeyPreviewEventArgs class implements argument of the OnKeyPreview event.

Designers

  Designer name Brief description
The Create constructor creates an argument of the OnKeyPreview event.

Properties inherited from IKeyPreviewEventArgs

  Property name Brief description
Cancel The Cancel property indicates whether the further event related to the keys pressing occurs.
KeyMessage The KeyMessage property returns value that indicates why the OnKeyPreview event was generated.

Properties inherited from IKeyEventArgs

  Property name Brief description
Key The Key property determines code of the key that was pressed or released.
ShiftState The ShiftState property returns value that corresponds to the state of auxiliary keys (SHIFT, ALT and CTRL) when the keyboard actions are performed.

See also:

Forms Assembly Classes