LostInCode
Programmer
I am looking for a method to find the complete Hierarchy that a VB Menu item belongs to.
Example:
Code:
-mnuItem_1
- SubItem_A
-SubItem_A1
-SubItem_A2
- SubItem_B
-SubItem_B1
With-out having to rename the menu items, or create a seperate hard-coded list, how can I find out with code at runtime that:
SubItem_A1 is an element of SubItem_A, and SubItem_A is an element of mnuItem_1
?