Home » FAQ » WinForms » Form » 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;
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with