|
-
May 17th, 2004, 04:15 AM
#1
Thread Starter
New Member
Key combo to "press" command button
I've got a main menu with five command buttons named:
"Registratie" "Camping" "Locaties" "Bezoekers" and "Afsluiten"
It would be nice if i could choose (press) one of those command buttons by making a key combo Alt+character This must be working exactly the same as opening a menu. For example file alt+f = file.
Registratie i want to choose with Alt+R, Camping with Alt+C, Locaties with Alt+L, Bezoekers with Alt+B and Afsluiten with Alt+A.
Now i think i have to do something in here...
----------------
Private Sub cmdRegistratie_KeyPress(KeyAscii As Integer)
???
End Sub
----------------
Who can help me?
-
May 17th, 2004, 10:00 AM
#2
Addicted Member
This is set using the Accelerator property.
Regards
BrianB
-------------------------------
-
May 17th, 2004, 10:05 AM
#3
also by putting the & in front of the letter you want to use in the caption.
&Registrate, &Camping, &Locaties , etc.
TG
-
May 18th, 2004, 01:35 AM
#4
Thread Starter
New Member
Both of these solutions don't work, cause it's VBA, sorry for not saying before.
-
May 18th, 2004, 03:03 AM
#5
Thread Starter
New Member
techgnome's solution DID work, but i put in the code, the & should be putted infront of the button name in it's properties 
thx guys
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
|