System.Windows.Forms.KeyEventArgs: Property Members

The properties of System.Windows.Forms.KeyEventArgs are listed below. For a list of all members, see the KeyEventArgs Members list.

See Also: Inherited members from System.EventArgs

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.