KeyEventArgs Class

Provides data for the KeyDown or KeyUp event from a Form control.

Namespace: elsystem.windows.forms

Properties

  Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property Alt bool True if the Alt key was pressed, otherwise false.
Public property Control bool True if the Ctrl key was pressed, otherwise false.
Public property KeyCode enum Gets the keyboard code for a KeyDown or KeyUp event.
Public property KeyData enum Gets the key data for a KeyDown or KeyUp event.
Public property KeyValue int Gets the keyboard value for a KeyDown or KeyUp event.
Public property Modifiers enum Gets the modifier flags for a KeyDown or KeyUp event. The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed.
Public property Shift bool True if the Shift key was pressed, otherwise false.
Public property SuppressKeyPress bool Gets or sets a value indicating whether the key event should be passed on to the underlying control.