emulate on_keydown, (possibly sendkeys)

p0welly

Registered User.
Local time
Today, 00:58
Joined
Aug 26, 2004
Messages
38
I have a listbox on a form, that using the keydown function, allows you to select an item and click enter to select it and run some code.

Im trying to make this work in a touchscreen enviroment, so I have my up and down arrows to move about the listbox but I cant get my select button to work.

I thought it would simply be something like

lstStuff.setfocus
Sendkeys "{enter}"

but it does not work, can anyone point me in the right direction?
 
Take the code that gets run by clicking enter, put it in a separate procedure.
Leave a call to this procedure in place of the original code location.
Put another call to this procedure in the "select" button onclick event.
 

Users who are viewing this thread

Back
Top Bottom