>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