How to enumerate a submenu collection
Posted on 2006-07-13
If I have a mainmenu list and secondary menu items within each primary menu item, I would like to enumerate through each of the sub items to examine their properties for stored data such as :
mainmenu --> mnu1 mnu2 mn3
sub items sub1 sub1 sub1
I thought the code to reference these items would be something like:
but that doesnt work even though frmMain.mnu1.sub1 is in the intellisense for the form object.
HOw can I address these sub items??