Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

KeyPress Event, SftTree Object

An ANSI key is pressed or released.

Syntax

VB.NETPrivate Sub object_KeyPressEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.KeyPressEvent
VBPrivate Sub object_KeyPress(KeyAscii As Integer)
C#.NETvoid object_KeyPressEvent(object sender, EventArgumentType e);
VC++void OnKeyPressobject(short* KeyAscii);
CHRESULT OnKeyPressobject(short* KeyAscii);

object

A SftTree object.

KeyAscii

Describes a standard numeric ANSI key code.

Comments

The KeyPress event occurs when an ANSI key is pressed or released.

The KeyPress event is generated when the user presses a key while the tree control has the input focus. The KeyPress event is not generated during cell editing.

Use KeyDown and KeyUp events to handle any keystroke not recognized by KeyPress, such as function keys, editing keys, navigation keys, and any combination of these with keyboard modifiers, such as SHIFT, CONTROL and ALT keys. Unlike the KeyDown and KeyUp events, KeyPress doesn't indicate the physical state of the keyboard; it passes a character instead.

The key typed by the user can be suppressed by setting KeyAscii to 0. It can be modified by assigning a new value to the KeyAscii variable.

See Also SftTree Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.