ComponentOne List 8.0 for ActiveX
KeyPress Event (TDBCombo)

 

TDBCombo Reference> TDBCombo Events> KeyPress Event (TDBCombo)

KeyPress Event (TDBCombo)

Use the KeyPress event to test keystrokes for validity or to format characters as they are typed.

Syntax

object_KeyPress (KeyAscii As Integer)

Arguments

KeyAscii is an integer representing an ANSI key code. KeyAscii is passed by reference; changing it sends a different character to the control. Changing KeyAscii to 0 cancels the keystroke so the control receives no character.

Remarks

Event applies to TDBList and TDBCombo controls.

The KeyPress event occurs when the user presses and releases one of the following kinds of keys:

·      A printable keyboard character.

·      The Ctrl key combined with an alphabetic or special character.

·      The Enter or Backspace key.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback