Set the form’s AcceptButton property. You can do this either through the designer, or through code such as
Form1.AcceptButton = button1;
Set the form’s AcceptButton property. You can do this either through the designer, or through code such as
Form1.AcceptButton = button1;
Share with