Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I set the default button for a form?

Set the form's AcceptButton property. You can do this either through the designer, or through code such as

form1.AcceptButton = button1;

Contributed from George Shepherd's Windows Forms FAQ



Page view counter