Raised when the user presses a key.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Shadows Event KeyPress As KeyPressHandler |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Vt
Dim handler As KeyPressHandler
AddHandler instance.KeyPress, handler |
Event Data
The event handler receives an argument of type DataEventArgs containing data related to this event. The following DataEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Bytes | Returns the data that was generated as the result of a key press. |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0
See Also