|
-
Mar 22nd, 2000, 03:47 AM
#1
Thread Starter
Addicted Member
Hello, can someone explain to me how you assign hotkeys to like a command button or a radio button or any control on the form? I know the command button has th default/cancel property, but how do you make a command button run if the user hits F5 anywhere in the form?
Thanks,
Thai
-
Mar 22nd, 2000, 03:55 AM
#2
Set the form's KeyPreview property to True, and then in the form's KeyDown event code
If KeyCode = vbKeyF5 Then
Command1 = True
End If
-
Mar 22nd, 2000, 04:04 AM
#3
Thread Starter
Addicted Member
thanks, one more thing.. :)
Thank you for the help, it works. Do you know where I can get a list of all the vb<key> codes? I am trying to get alt-f1 to do an event but vbkeyalt or vbalt doesn't seem valid. Thanks again!
Thai
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
|