PowerTCP Emulation for .NET CF
KeyPress Event
See Also  Send comments on this topic.
Dart.Emulation Namespace > Vt Class : KeyPress Event




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
C# 
public new event KeyPressHandler KeyPress
Managed Extensions for C++ 
public: new __event KeyPressHandler* KeyPress
C++/CLI 
public:
new event KeyPressHandler^ KeyPress

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.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.