KeyPress Event

Measurement Studio User Interface

KeyPress Event

Syntax

Sub ControlName_KeyPress( KeyAscii As Integer)

Applies To

CWButton

CWGraph

CWKnob

CWNumEdit

CWSlide

Purpose

Generated when the control has focus and you press a key.

Remarks

For more information, refer to Visual Basic help.

Parameters

KeyAscii As Integer

The ASCII value of the key that was pressed. In Visual Basic, use the Chr() function to translate KeyAscii into a character.

See Also

KeyDown

KeyUp