Thanks!
Printable View
Thanks!
You may not like the answer. Every place you want that function key active, you must put a trap in the keydown or keyup event to capture the function key press. If there are a lot of controls, this can be a real pain. Have fun!
HDR, I don't agree...
Use this
this will work for all control... and what do you mean with Function keys? F1...F12 ?Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If Shift = 1 And KeyCode = vbKeyJ Then MsgBox "SHIFT"
End Sub
Private Sub Form_Load()
Me.KeyPreview = True
End Sub
that you could do
If KeyCode = vbKeyF1 ....
GoodLuck!
I check out this board almost every morning hoping to learn something new. Thanks Jop.
Yeah, keep coming over, you learn new stuff every day!