Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
KeyEventArgs Properties

KeyEventArgs Properties

The KeyEventArgs type exposes the following members.

  Name Description
Public property Alt Gets a value indicating whether the ALT key was pressed.
Public property Control Gets a value indicating whether the CTRL key was pressed.
Public property Handled Gets or sets a value indicating whether the event was handled.
Public property KeyCode Gets the keyboard code for a KeyDown or KeyUp event.
Public property KeyData Gets the key data for a KeyDown or KeyUp event.
Public property KeyValue Gets the keyboard value for a KeyDown or KeyUp event.
Public property Modifiers 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 Gets a value indicating whether the SHIFT key was pressed.
Public property SuppressKeyPress Gets or sets a value indicating whether the key event should be passed on to the underlying control.
Top
Show:
© 2015 Microsoft