Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu on the fly
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00429937
Message ID:
00429990
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform