Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
)

Parameters

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
Show:
© 2017 Microsoft