Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delegates
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00800062
Message ID:
00800401
Vues:
21
Dave,

>>You could try unwiring the delegate when you don't want it to fire.
>object.event -= new eventhandler(method)<


Thanks, that's what I was looking for ... I forgot about the -= instead of the += ... but does it actually work like that (unwire the delegate)? I guess I could test it to find out, but the problem that I had when I first posted the question was actually not caused by the unwanted firing of the eventhandler, so I guess I really don't need to do that now.

~~Bonnie
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