Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning a default command button
Message
From
16/01/2003 17:08:57
 
 
To
16/01/2003 16:50:45
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00742653
Message ID:
00742659
Views:
13
Jerry,

Modal Forms have an AcceptButton property (and a corresponding CancelButton property) that exhibits the behavior you want. I don't know if you can do it quite this easily with a non-modal form.

~~Bonnie


>Using a C# WinForm, how do I make a command button the default button so that when a user hits enter, the command button's click() is called?
>
>Thanks,
>
>Jerry
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform