如何获取ToolStripMenuItem 类的实例菜单中的菜单项 例如有菜单file,它是ToolStripMenuItem的实例。file菜单中有load,save,exit三个菜单项。请问在获得file对象后,有没有什么方法可以获得其包含的菜单项,即load save exit 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 file.DropDownItems[0].text = "&load"; private void button2_Click(object sender, EventArgs e) { foreach (ToolStripItem tmts in fileToolStripMenuItem.DropDownItems) { MessageBox.Show(tmts.Text); } } winform 子窗体和父窗体的菜单栏合并在一起了怎么办?? 书上的静态成员不能访问非静态成员的概念有点不能理解 测试操作系统?? GDI画圆的刻度 控制台程序中如何实现按一下 “空格键” 出提示:请输入数值 WinForm隐藏与关闭的问题 请问关于C#调用VC写的DLL问题 sprint.net加nhibernate 配置出现问题 VS2012WEB项目如何附加到进程进行本机调试 C# 窗体掉用问题 B/S结构读取客户端excel文件 链接数据库是不能进行其他操作
{
foreach (ToolStripItem tmts in fileToolStripMenuItem.DropDownItems)
{
MessageBox.Show(tmts.Text);
}
}