-
Help,
My application uses the f1 to f10 keys to do something. They all work, however, after f10 does it's thing it also higlights the 1st item on the menu bar. Try it now and see what I mean. Is there a way to disable this "feature" in windows so that f10 only does what I tell it to do? As of right now the user has to press escape to get back to where he was.
Thanks
-
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF10 Then
KeyCode = 0
End If
End Sub
-
In addition, if you are pressing keys while the form has focus, you also must change the property of the "KeyPreview" = True. This will let the form takes keystroke.