Visual Basic (Declaration) | |
---|---|
Public Class KeyEventArgs Inherits System.EventArgs |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As KeyEventArgs |
C# | |
---|---|
public class KeyEventArgs : System.EventArgs |
C++/CLI | |
---|---|
public ref class KeyEventArgs : public System.EventArgs |
A KeyEventArgs, 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 KeyDown, KeyPress or KeyUp event.
The KeyDown event occurs when the user presses any key. The KeyUp event occurs when the user releases the key. Duplicate KeyDown events occur each time the key repeats, if the key is held down, but only one KeyUp event is generated when the user releases the key. The KeyPress event also occurs when a key is depressed.
For information about the event model, see Events and Delegates.
System.Object
System.EventArgs
Dart.LiveControls.KeyEventArgs
Target Platforms: Microsoft .NET Framework 2.0