left and right arrow keys

yogi

Registered User.
Local time
Today, 12:09
Joined
Mar 26, 2007
Messages
47
I would like to have a event for the left and right arrow keys, does anyone know how to do this?
 
Not too sure - it may be "KeyDown" - check it on help

Col
 
that won't work because any key that you press it will execute that event
 
Yes, but when you just do the following

if keycode = vbkeyleft then
' do the left code
keycode = 0 ' cancel the key?
end if

if keycode = vbkeyright then
' do the right code
keycode = 0 ' cancel the key?
end if
 
youd have to put it in the "keypress" and find the key codes for both the left and right arrows
 

Users who are viewing this thread

Back
Top Bottom