Hi,
I made a form with a Button and 2 TextBox. When you press Enter in whatever TextBox, Button will be press.
I mean making a default Button in form?
Show me how?
Printable View
Hi,
I made a form with a Button and 2 TextBox. When you press Enter in whatever TextBox, Button will be press.
I mean making a default Button in form?
Show me how?
Hello,
When you select your form (in design view), in the Properties Window, find the AcceptButton Property, and in the drop down menu, select the button that you want to make your default.
You can also set the default cancel button as well using the CancelButton Property.
Hope this helps!
Gary
u could also do something like.. i think it was..
Button1.PerformClick()
or something like that
Nice, useful.
Thanks all.