ToolStripMenuItem ToolStrip;
private void CreateSubMenu(string text)
{
ToolStrip = new ToolStripMenuItem(text);
ToolStrip.Text = text;
ToolStrip.Click += new EventHandler(Item_Click);
ToolStrip.CheckOnClick = true;
showNoteToolStripMenuItem.DropDown.Items.Add(newnote);
}
This is a way to add SubMenuItems to MenuStrip like a similiar way you can add sub menus to contextmenu because ContextMenuStrip is formed from ToolStripMenus.