Live Chat Icon For mobile
Live Chat Icon

How do I set the default button for a form

Platform: WinForms| Category: Form

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

	Form1.AcceptButton = button1;

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.