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:
00800227
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform