ButtonEx ActiveX Control Reference

KeyPress event

         

Occurs when the user presses and releases an ANSI key.

Syntax

Sub object_KeyPress([index,] KeyAscii)

The KeyPress event syntax has these parts:

PartDescription
objectA ButtonEx object.
IndexAn integer that uniquely identifies a control if it's in a control array.
KeyAsciiAn Integer value. Returns a standard numeric ANSI keycode. Keyascii is passed by reference; changing it sends a different character to the object. Changing keyascii to 0 cancels the keystroke so the object receives no character.

Problems, Suggestions, Praise concerning the documentation? Please send feedback.