KeyEventArgs(Keys) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the KeyEventArgs class.
public:
KeyEventArgs(System::Windows::Forms::Keys keyData);
public KeyEventArgs (System.Windows.Forms.Keys keyData);
new System.Windows.Forms.KeyEventArgs : System.Windows.Forms.Keys -> System.Windows.Forms.KeyEventArgs
Public Sub New (keyData As Keys)
Parameters
- keyData
- 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 by applying the bitwise OR (|) operator to constants from the Keys enumeration.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.