Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
(C#) Raise an Event
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01016081
Message ID:
01016349
Views:
7
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform