|
-
Dec 14th, 2006, 04:50 AM
#1
Thread Starter
Lively Member
How to set Default to Button
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?
!Have fun!

-
Dec 14th, 2006, 05:34 AM
#2
Re: How to set Default to Button
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
-
Dec 14th, 2006, 06:05 AM
#3
Frenzied Member
Re: How to set Default to Button
u could also do something like.. i think it was..
Button1.PerformClick()
or something like that
-
Dec 14th, 2006, 07:34 PM
#4
Thread Starter
Lively Member
Re: How to set Default to Button
Nice, useful.
Thanks all.
!Have fun!

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|