I want to find a way to make a specific button, the form's default button, I.e. the button that is highlighted when the form opens for the first time.
I tried the AcceptButton property but when I run the program, that does not work.
Any idea?
Thank you in advance,
Tassos
You need to change the AcceptButton
property of the containing form.
form1.AcceptButton = button1
Here form1
is the Form whose default button you need to set, and button1
is the name of the Button on that form.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With