I have a context menu that has some items like A, B C, D and E. Now D and E also has a sub menu items.
Ex D has I and J
E has K and L
and same K and L has some sub menu items. For example:
K has M
L has T
So my context menu will look like this..
A
B
C
D --> I
J
E --> K --> M
L --> T
So my question is how to add M and T items in toolstripitems which are K and L.
Here is sample code that creates menu like
A --> B --> C:If items you deal with
ToolStripItemyou will have to cast it toToolStripMenuItem.