Alt-Key Shortcut

  • Thread starter Thread starter DD
  • Start date Start date
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.
 
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
 
Back
Top