|
-
Oct 12th, 2000, 10:38 AM
#1
-
Oct 12th, 2000, 10:46 AM
#2
Addicted Member
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!
-
Oct 12th, 2000, 11:14 AM
#3
Frenzied Member
HDR, I don't agree...
Use this
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
this will work for all control... and what do you mean with Function keys? F1...F12 ?
that you could do
If KeyCode = vbKeyF1 ....
GoodLuck!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 12th, 2000, 11:32 AM
#4
Addicted Member
I check out this board almost every morning hoping to learn something new. Thanks Jop.
-
Oct 12th, 2000, 11:55 AM
#5
Frenzied Member
Yeah, keep coming over, you learn new stuff every day!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|