Alt-Key Shortcut

D

DD

I want to ad an Alt-Key shortcut to a label. Example:
label is E&xit (hot key X). I have added an on click event
to the label to exit the application. I want to start with
a label and set up up like a command button so that I can
customize the button (the command button through the
wizard seems limited in this respect). The hot key does
not seem to work with a label. Thanks in advance.
 
A

Arvin Meyer

That's because a label cannot get focus. Labels make great command buttons,
but they have at least 2 limitations. The first you just discovered. The
other one is that you cannot click on them and move off the "button" without
releasing the mouse and have the button not function. The advantages are
that you can easily change both the back color and forecolor and that you
can make them change into completely different "states" by using the Borders
and Special Effects.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top