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:
01016635
Views:
8
Mike,

You're trying to run the code associated with what happens when a MenuItem is clicked, right? Like when you click on the MenuItem and the Popup menu drops down. Do you want to automate making the menu drop down or just fire off the code that would run then? If you want to automate the drop down, then SendMessage as Rick suggested or I guess you could probably move the mouse and click the menu programmatically. If you just want to fire the code that would be fired by the clicking, then you just need to call that particular handler. Obviously, you're not adding a handler yourself or this would be too simple. So, I would think that the framework is adding a handler somewhere up the line buried in some class code somewhere. That's the method you could call directly. So, which is it that you're trying to accomplish? The visible clicking or just the resulting code firing?

Chad

>I don't see where this is. It's not in InitializeComponent(), but it shouldn't be - not like I've decided to add an event when .Popup fires. .Popup is an event that's a member of MenuItem. I just want to fire the existing event, not create a new event handler.
>
>I'm probably just missing something really obvious, but I can't figure it out.
>
>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