Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to override a click method in a button on a form?
Message
De
14/06/2004 22:35:33
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
How to override a click method in a button on a form?
Divers
Thread ID:
00913730
Message ID:
00913730
Vues:
64
Hi, I'm trying to learn C# and MM.net, so please forgive me for asking a very basic question... I drop a button control on a form, then I double-click on the button to create the Click event handler Btn1_Click() on the form. I understand that this is a handler that gets executed *after* the click() method in the button class fires. My question is, how can you actually override a click method of a button dropped on a form? If that button class had some code in its click method that I didn't want to fire, how would I do it? Do I have to create a sub-class of the button first and then drop that on the form, and put my code in the sub-classed click method? And do that for each button I want to put code in? Seems it would get confusing with all those sub-classed controls. Thanks IA.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform