Link to home
Start Free TrialLog in
Avatar of asaflahv1
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...

ASKER CERTIFIED SOLUTION
Avatar of manojamin
manojamin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of manojamin
manojamin

'oh! change this as shown...

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
In form_Keyup:

If KeyCode = vbKeyLeft And Shift = vbKeyControl Then
    KeyCode = 0
    Shift = 0
    SendKeys "{Tab}"
End If