check for the KeyCode (as in the code below) on the relevant control. The cursor keys will give keycodes of 37,38,39 and 40. The shift value is 0, 1 if [tt]shift[/tt] is pressed and 2 if [tt]ctrl[/tt] is pressed
[tt]Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
MsgBox KeyCode & " --- " & Shift
End Sub[/tt]
my application is an MDI environment and i recall having to use the k[tt]eypreview = True[/tt] in order to check for function keys etc. at a higher level so this may be worth having a look at too?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.