KeyPressEventArgs Constructor (Char)
.NET Framework (current version)
Initializes a new instance of the KeyPressEventArgs class.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- keyChar
-
Type:
System::Char
The ASCII character corresponding to the key the user pressed.
Use the Control::ModifierKeys property to get the current state of the modifier keys.
The following example displays a message box that shows the current state of the SHIFT key.
.NET Framework
Available since 1.1
Available since 1.1
Show: