HOW TO: populate Menus at runtime
-
hi evry1, i have to populate menus thru an Access database in VB 6.0 i know how to generate main menu and menu items at runtime in VB.NET, but what i want to know is that, how do i perform the same thing in VB 6.0? there is no mainMenu property in a VB 6.0 form. Secondly i can add a menu item using a cotrol array of a menu, but this doesnt allow me to create a sub menu of a newly added menu. Please help me!!! thanx in advance ☺«««DTA»»»☺
-
hi evry1, i have to populate menus thru an Access database in VB 6.0 i know how to generate main menu and menu items at runtime in VB.NET, but what i want to know is that, how do i perform the same thing in VB 6.0? there is no mainMenu property in a VB 6.0 form. Secondly i can add a menu item using a cotrol array of a menu, but this doesnt allow me to create a sub menu of a newly added menu. Please help me!!! thanx in advance ☺«««DTA»»»☺
To add submenus dynamically in VB6 you need to create a place holder top level menu and set it's Index property to 0. Then add sub menus by index.