|
-
Mar 20th, 2002, 04:28 PM
#1
Thread Starter
Addicted Member
The F8 key
Does anyone know how i could use the F8 key to act as a cmd button click_event??
Say i had a text box that searched a database. When i enter values into that textbox i want to be able to press F* to execute what is contained in the cmd button's click event! Any ideas??
I already know how to execute the click event by pressing enter, but was wondering if it could be done through F8??
Any ideas??
Many thx in advance
-
Mar 20th, 2002, 04:34 PM
#2
-= B u g S l a y e r =-
VB Code:
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF8 Then
MsgBox "do u'r stuff"
End If
End Sub
-
Mar 20th, 2002, 04:47 PM
#3
Thread Starter
Addicted Member
What if, depending on the f8 key being pressed i wanted to execute the entire contents of the cmd button.....and there is quite a few calls to modules in it?? How could i do this?
many thx in advance
-
Mar 20th, 2002, 04:48 PM
#4
-= B u g S l a y e r =-
VB Code:
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF8 Then
Call Command1_Click
End If
End Sub
-
Mar 20th, 2002, 04:54 PM
#5
Thread Starter
Addicted Member
Many thx Peet, sorry for the stupidity!!
-
Mar 20th, 2002, 04:55 PM
#6
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
|