contextmenustrip 怎么获取子菜单,怎么返回上一层
contextmenustrip 怎么获取子菜单,怎么返回上一层
------解决方案--------------------
ToolStripMenuItem TMenuItem = this.contextmenustrip1.Items[0] as ToolStripMenuItem;
ToolStripMenuItem childItem = TMenuItem.DropDownItems[0]; //得到第二层菜单
childItem.OwerItem; //得到第二层菜单的父菜单(第一层的)