求助:如何实现动态获取菜单中某个菜单项
//动态更新菜单的check
MenuItem menuItem = new MenuItem(base.Name + "\tF");
int nIndex = m_ParentApplication.ToolsMenu.MenuItems.IndexOf(menuItem);
if(nIndex >= 0)
m_ParentApplication.ToolsMenu.MenuItems[nIndex].Checked = false;
menuItem.Dispose();
请问哪里出错?