System.Windows.Forms
1.0.5000.0
2.0.0.0
System.EventArgs
System.Runtime.InteropServices.ComVisible(true)
A , which specifies the key the user pressed and whether any modifier keys (CTRL, ALT, and SHIFT) were pressed at the same time, is passed with each or event.
The event occurs when the user presses any key. The event occurs when the user releases the key. Duplicate events occur each time the key repeats, if the key is held down, but only one event is generated when the user releases the key.
The event also occurs when a key is pressed. A is passed with each event, and specifies the character that was composed as a result of each key press.
For information about the event model, see [<topic://cpconEventsDelegates>].
Provides data for the or event.
Constructor
To be added.
Initializes a new instance of the class.
A 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 enumeration.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added.
To be added.
Gets a value indicating whether the ALT key was pressed.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added.
To be added.
Gets a value indicating whether the CTRL key was pressed.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added.
is implemented differently by different controls within Windows Forms. For controls like which subclass native Win32 controls, it is interpreted to mean that the key message should not be passed to the underlying native control. If you set Handled to true on a , that control will not pass the key press events to the underlying Win32 text box control, but it will still display the characters that the user typed.
If you want to prevent the current control from receiving a key press, use the property.
Gets or sets a value indicating whether the event was handled.
1.0.5000.0
2.0.0.0
Property
System.Windows.Forms.Keys
To be added.
To be added.
Gets the keyboard code for a or event.
1.0.5000.0
2.0.0.0
Property
System.Windows.Forms.Keys
To be added.
You can use constants from to extract information from the property. Use the bitwise AND operator to compare data returned by with constants in to obtain information about which keys the user pressed. To determine whether a specific modifier key was pressed, use the , , and properties.
Gets the key data for a or event.
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added.
To be added.
Gets the keyboard value for a or event.
1.0.5000.0
2.0.0.0
Property
System.Windows.Forms.Keys
To be added.
To determine whether a specific modifier key was pressed, use the , , and properties. Modifier flags can be combined with bitwise OR.
Gets the modifier flags for a or event. The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added.
To be added.
Gets a value indicating whether the SHIFT key was pressed.
1.0.5000.0
2.0.0.0
Property
2.0.0.0
System.Boolean
To be added.
You can assign true to this property in an event handler such as in order to prevent user input.
Setting to true also sets to true.
Gets or sets a value indicating whether the key event should be passed on to the underlying control.