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.
 
Back
Top