I am new to programming. I need to get a list of ALL menuItems (ToolStripMenuItems) including Dropdown menuitems. I found some codes, but it list Main Menu Items only, No Dropdown menuItems. Can you give me a suitable code for list ALL menuItems.
foreach (ToolStripMenuItem item in menuStrip.Items)
{
MessageBox.Show(item.Name);
}