Dynamic menus. Create menus at runtime...
Posted on 2002-05-02
I am trying to create dynamic menus at runtime i.e. I want to generate menu items at runtime by picking the menu items from a database, but I am unable to find the options to implement that. I have tried using menuitems and giving the menuitems an index value, thus creating a control array for it - but with this the problem is that I cannot create submenuitems for the dropdown menus I am creating. Also I am trying to generate the top level menu items dynamically which with this approach is giving a problem. I have also tried using commandbar control but that always gives wrong number of arguments error or runtime error 5. I would be glad if anyone of you experts could help me out with this problem or could suggest an alternate solution.