Button and KeyDown!!

  • Thread starter Thread starter Tor Lund
  • Start date Start date
T

Tor Lund

i want to program my button so i can press a key on my keyboard and then the
key is using the button_click funcktion. in the same time the key must react
always without the button is in focus. if only have to use one function per
key..

anybody knows ??

Tor Lund
 
Hi Tor,

Try setting the Form property AcceptButton to the button name (e.g. button1). Then, everytime you press enter the button1_onClick function will be called.
 

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

Similar Threads


Back
Top