asaflahv1
asked on
Substitute Tab key...
Dear experts...
What i'm trying to do is rather easy, but for some reason i'm not very succesfull achiving it...
What i'm attempting to do is make the Ctrl-(LeftArrow) combination pass the focus between the controls on the window just like the "Tab" key does...
I would really appreciate your help.
Thank you...
What i'm trying to do is rather easy, but for some reason i'm not very succesfull achiving it...
What i'm attempting to do is make the Ctrl-(LeftArrow) combination pass the focus between the controls on the window just like the "Tab" key does...
I would really appreciate your help.
Thank you...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In form_Keyup:
If KeyCode = vbKeyLeft And Shift = vbKeyControl Then
KeyCode = 0
Shift = 0
SendKeys "{Tab}"
End If
If KeyCode = vbKeyLeft And Shift = vbKeyControl Then
KeyCode = 0
Shift = 0
SendKeys "{Tab}"
End If
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If (KeyCode = vbKeyLeft And wasControl) Then
Debug.Print "this is where you detect that this is ""Ctrl+<-"""
End If
wasControl = False
End Sub