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:
01016289
Views:
10
Mike,

So, let me see if I get this straight, you want to simulate pulling down a menu that doesn't exist? And, because there are no items, the event doesn't get raised? Have I got that right? If so, one option may be to create a subclass of the MenuItem class and override its Paint method. Then add one of these new subclasses to your main MenuItem. That way the your class will get shown and raise the event, but there will be nothing to show (if that makes any sense). It's a kludge, but it may work.

HTH,
Chad

>Thanks. My situation is a little wierd in that the MenuItem has no sub items (.MenuItems.Count == 0), so still the .Popup event never happens.
>
>What I'd really like to do is just raise the existing .Popup event.
>
>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