Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trigger a Click event on a Form Button (hot-key access)

Status
Not open for further replies.

BoxPro1

Programmer
Apr 5, 2001
11
US
How do I trigger (hot-key) a Click Event on a button when a picture is used in place of the test label?

Thanks
Ron
 
You can use ... in the form init event
ON KEY LABEL alt+"MyKey" DO myClickEvent
&& use suitable character in MyKey
Have the Click Event Codes of the picture in myClickEvent
Also put the code DO myClickEvent in the click event of the picture.

In the exit event of the form release the ON KEY LABEL alt+"MyKey" ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Just a quick reflex...
Even without having a separate event as said above by me, you can make ...
ON KEY LABEL alt+MyHotKey DO ThisForm.MyTextBox.Click()

The point is, you have to let the user know what is the MyHotKey suitably in the form display.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top