摘要:最近在做WINFORM开发,一直都在为主界面的点击事件及动态加载菜单苦脑。现在已解决这个问题了,可以实现数据库或都XML等配置完成动态生成菜单及事件加载。代码如下:privatevoidForm1_Load(objectsender,EventArgse){//添加菜单一ToolStripMenuItemsubItem;subItem=AddContextMenu("入库",menuStrip1.Items,null);//添加子菜单AddContextMenu("添加入库",subItem.DropDownItems,newEventHandler(M
阅读全文
摘要:http://www.cnblogs.com/virusswb/archive/2008/07/03/1234889.html
阅读全文
摘要:文章來源: http://www.cnblogs.com/virusswb/archive/2008/07/03/1234889.htmlusingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.IO;usingSystem.Reflection;usingKimbanx.SecurityDiskSystem.FactoryToo
阅读全文
摘要:[ASP.NET][C#]app.config與web.config的增加、修改、刪除操作2011/2/21 11:28 | 閱讀數 : 12021 | 我要推薦| 4 Comments | 訂閱 應用程式組態檔,對於asp.net是web.config,對於WindowsForm程式則是App.config(執行檔名稱.exe.config)。組態檔對於程式本身來說,就是基礎和依據,其本質是一個xml檔案,對於組態檔的操作,從.net2.0開始就方常的方便了,提供了System.Web.Configuration與System.Configuration兩個命名空間,要使用它,需要加入參..
阅读全文