KeyEventArgs Constructor (Keys)


Initializes a new instance of the KeyEventArgs class.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public KeyEventArgs(
	Keys keyData


Type: System.Windows.Forms.Keys

A Keys representing the key that was pressed, combined with any modifier flags that indicate which CTRL, SHIFT, and ALT keys were pressed at the same time. Possible values are obtained be applying the bitwise OR (|) operator to constants from the Keys enumeration.

.NET Framework
Available since 1.1
Return to top