471,627 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

How do you change the default button on a Form?

I know there used to be a way to do this, but I'm completely blanking on how
to do it in a WinForm.

Any help greatly appreciated.
Feb 21 '06 #1
2 1168
The property you're looking for is called AcceptButton on the windows

Feb 21 '06 #2
The form has two properties to add default buttons behavior.
AcceptButton: Enter
CancelButton: Esc

Feb 21 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Anil Kumar Sharma | last post: by
reply views Thread by zeng.hui.stephen | last post: by
5 posts views Thread by cj | last post: by
2 posts views Thread by Cranky | last post: by
4 posts views Thread by =?Utf-8?B?bXVzb3NkZXY=?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.