when a form is shown, how to focus to a button in C#?

  • Thread starter Thread starter John
  • Start date Start date
You can set the propery AcceptButton to the one that you want to have the
focus, when the user presses ENTER, the click event will raise.

Hope this helps

Steven Lewis
 
thank guys!

Steven Lewis said:
You can set the propery AcceptButton to the one that you want to have the
focus, when the user presses ENTER, the click event will raise.

Hope this helps

Steven Lewis
 
Back
Top