Hello All
I would like to keep some shortcuts in my application for the user. But I have not been able to suceed yet. Can you please help?
The form I am using this has 5 pages in one tap controrl. I would like to assign one shortcut key for each page in the tab controrl. I wrote this code , to capture 'ctrl+z'; and I wanted the controrl to go to the second page in the tab controrl.
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Dim intctrl As Integer
intctrl = (Shift And acCtrlMask) > 0
If intctrl And KeyCode = vbKeyZ Then
KeyCode = 0
Me!TabCtl0.Pages(2).SetFocus
End If
But this is not working. Can anyone pl suggest what I need to fix here.
thanks
VC
I would like to keep some shortcuts in my application for the user. But I have not been able to suceed yet. Can you please help?
The form I am using this has 5 pages in one tap controrl. I would like to assign one shortcut key for each page in the tab controrl. I wrote this code , to capture 'ctrl+z'; and I wanted the controrl to go to the second page in the tab controrl.
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Dim intctrl As Integer
intctrl = (Shift And acCtrlMask) > 0
If intctrl And KeyCode = vbKeyZ Then
KeyCode = 0
Me!TabCtl0.Pages(2).SetFocus
End If
But this is not working. Can anyone pl suggest what I need to fix here.
thanks
VC