PowerTCP Emulation for .NET
KeyPress Event




Raised when the user presses a key.
Syntax
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
Event Data

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.

PropertyDescription
Bytes Returns the data that was generated as the result of a key press.  
Remarks

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.

See Also

Reference

Vt Class
Vt Members


PowerTCP Emulation for .NET Documentation Version 4.7
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic