Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu on the fly
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00429937
Message ID:
00429990
Vues:
16
>How can I build a menu on the fly. What I need is to place the menu Item onto the menu and have it execute some code but how can I add the menu and assign some code to it???
>
>eg.
>Read in from data source:
>ReportLocation = "Reports\SomeInfo"
>ReportEXE = "ReportViewer.exe someinfo.rpt"
>
>
>What I want to do is see if there is a menu called Reports if not add it. Then check if SomeInfo exists, if not add to it the menu, and have it perform a sub with the ReportEXE as the paramater. How can I do this?

search "Creating and Modifying Menus at Run Time" in the VB help.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform