System.Windows.Forms.KeyEventArgs Members

The members of System.Windows.Forms.KeyEventArgs are listed below.

See Also: Inherited members from System.EventArgs

Public Constructors

Initializes a new instance of the System.Windows.Forms.KeyEventArgs class.

Public Properties

[read-only]
Altbool.

Gets a value indicating whether the ALT key was pressed.

[read-only]
Controlbool.

Gets a value indicating whether the CTRL key was pressed.

Handledbool.

Gets or sets a value indicating whether the event was handled.

[read-only]
KeyCodeKeys.

Gets the keyboard code for a Control.KeyDown or Control.KeyUp event.

[read-only]
KeyDataKeys.

Gets the key data for a Control.KeyDown or Control.KeyUp event.

[read-only]
KeyValueint.

Gets the keyboard value for a Control.KeyDown or Control.KeyUp event.

[read-only]
ModifiersKeys.

Gets the modifier flags for a Control.KeyDown or Control.KeyUp event. The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed.

[read-only]
Shiftbool.

Gets a value indicating whether the SHIFT key was pressed.

SuppressKeyPressbool.

Gets or sets a value indicating whether the key event should be passed on to the underlying control.