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:
01016289
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform