对于第一个问题,你可以用
Form form=new Form();
form.Menu = new MainMenu(CreateMenu());
form.show();注意,mainmenu.xml与你程序在同一目录下
Form form=new Form();
form.Menu = new MainMenu(CreateMenu());
form.show();注意,mainmenu.xml与你程序在同一目录下
解决方案 »
- 无法在安装vs2010时同时安装msdn
- 水晶报表怎么传递参数给PrintDocument对象
- 运行创建的默认 Visual Studio Shell Isolated 项目时提示找不到 MSVCR90.dll
- 关于URLRewriter与众不同的要求(不要说我变态哈,其实就是正则表达式的问题),谁能搞定,我们推荐他做版主。
- IM即时通信系统源码
- 在VS2005中的设计窗口中,无法配置SQL连接!谁知道是怎么回事啊?
- Windows Service 怎么调试
- 请教在localhost/xxx.aspx运行,能正常显示treeview,但将其设置在internet上,比如219.128.98.7/xxx.aspx就不能正常显示treeview为什么
- LISTVIEW.ColumnClick.排序300分给分绪贴1
- radiobutton 3个以上按钮,多值如何绑定
- 我们来讨论一下C#和Java到底谁更有前途吧?
- infoboy,你的《C#高级编程》可以拿出来共享吗?
rm = new ResourceManager("VSNetMenus", Assembly.GetCallingAssembly());
这里不能直接写为VSNetMenus,前面应该加上你这个工程的名字。
如:namespace xxxx //这就是你的工程的名字
{
/// <summary>
/// Summary description for Form2.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
//主类
}就是这样:rm = new ResourceManager("xxxx.VSNetMenus", Assembly.GetCallingAssembly());
编写代码添加MenuCommand