Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting an event and updating in initializecomponent
Message
De
24/01/2005 17:10:30
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00980208
Message ID:
00980212
Vues:
41
Zakaria,

You can remove the delegate for the event from the Property Sheet (just go the Events in the Property sheet, find the Event and delete the EventHandler). This doesn't remove the EventHandler, only the delegate to it. You still have to remove the EventHandler method in the code itself. (But, if you forget and leave it in there, the Form still will run, it just won't execute the EventHandler when the Event fires).

~~Bonnie


>Hello all,
>
>When I delete an event for a certain control and running afterwards the form I get an error in the form's InitializeComponent that there is no definition for that certain event. After deleting this event in InitializeComponent the error goes away.
>
>I find it irritating to delete almost the same thing twice. Is there a setup in c# to do this automatically?
>
>Zakaria al Azhar
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