Dart.Emulation Namespace > Vt Class : KeyPress Event |
Public Shadows Event KeyPress As EventHandler(Of KeyPressEventArgs)
Dim instance As Vt Dim handler As EventHandler(Of KeyPressEventArgs) AddHandler instance.KeyPress, handler
public new event EventHandler<KeyPressEventArgs> KeyPress
public: new __event EventHandler<KeyPressEventArgs*>* KeyPress
public: new event EventHandler<KeyPressEventArgs^>^ KeyPress
The event handler receives an argument of type KeyPressEventArgs containing data related to this event. The following KeyPressEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Bytes | Returns the data that was generated as the result of a key press. |
The KeyPress event is raised when a key is pressed after the KeyDown event is raised. Within this event it is possible for a keypress to generate multiple bytes. ASCII characters are normally presented as a single byte, whereas function keys and others may generate byte arrays of greater length.