Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
(C#) Raise an Event
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01016081
Message ID:
01016347
Vues:
9
Chad,

>>I'm pretty sure you can call the event handler directly by simply passing a reference to the object (the MenuItem in this case) and the proper event hander (new EventHandler(menu_Click))

Do you mean like this?
this.ReportsPad.Popup(this.ReportsPad, new EventArgs());
If so, I've tried that, but it won't compile. This is the build error:
The event 'System.Windows.Forms.MenuItem.Popup' can only appear on the left hand side of += or -=

Thanks,
Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform