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:
01016349
Vues:
8
Mike,

No, but close. Somewhere there is an event handler assigned to handle that event. That code will look like this:
this.ReportsPad.Popup += new EventHandler(SomeMethod);
Find that and see what the SomeMethod is. Then, somewhere you'll have SomeMethod defined as:
private void SomeMethod(object sender, EventArgs e)
That's the method you'll actually call like this:
this.SomeMethod(this.ReportsPad, new EventArgs());
And THAT, should do the same thing as if the Popup event had fired.

HTH,
Chad

>Chad,
>
>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
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform