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
 

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