Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delegates
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00800062
Message ID:
00800401
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform