Key Click Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How could I make my form so that when a certain button is pushed, such as
enter, a macro or event proc. will run?
 
Patrick said:
How could I make my form so that when a certain button is pushed,
such as enter, a macro or event proc. will run?

No matter where on the form that button is pushed? If you set the
form's KeyPreview property to Yes, then you can use the form's KeyDown
or KeyPress event (which ever is appropriate) to check what key was
pressed and take whatever action you want.
 

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

Back
Top