Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning a default command button
Message
De
16/01/2003 17:08:57
 
 
À
16/01/2003 16:50:45
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00742653
Message ID:
00742659
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform