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:
00800227
Views:
16
You could try unwiring the delegate when you don't want it to fire.

object.event -= new eventhandler(method)

Or maybe setting a flag on the form and cheking it inside each handler

object_event(object,eventargs)
{
if (this.fireevent)
{
//eventhandler code here
}
}

I know Kevin McNeish had something in his documentation that said some form events never fired when they were supposed to and other events fired when they were not supposed to. He fixed those in his base classes.

>I hope I've explained this clearly enough. Does anybody have any clue as to whether you can disable or turn off a Delegate once it's been assigned?
>
>TIA,
>~~Bonnie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform