Click to See Complete Forum and Search --> : Keyboard Control


TheBoneCollector
May 7th, 2001, 05:19 PM
For some reason i cannot get VB to recognise my direction arrows on the keyboard???
anyone know the best way to do this?
i have tryed most methods i know.

slcotten
May 7th, 2001, 05:32 PM
In the control MouseDown or MouseUp event write something like the following... I think it should work.


Select Case KeyCode
Case vbKeyUp
' do something
Case vbKeyDown
' do something
Case vbKeyLeft
' do something
Case vbKeyRight
' do something
Case else
' do something
End Select




HTH