08 2012 档案

C# WinForm 用MenuStrip动态生成菜单并动态加载事件
摘要:最近在做WINFORM开发,一直都在为主界面的点击事件及动态加载菜单苦脑。现在已解决这个问题了,可以实现数据库或都XML等配置完成动态生成菜单及事件加载。代码如下:privatevoidForm1_Load(objectsender,EventArgse){//添加菜单一ToolStripMenuItemsubItem;subItem=AddContextMenu("入库",menuStrip1.Items,null);//添加子菜单AddContextMenu("添加入库",subItem.DropDownItems,newEventHandler(M 阅读全文

posted @ 2012-08-31 15:00 另一只兔子 阅读(1773) 评论(0) 推荐(0)

資源
摘要:http://www.cnblogs.com/virusswb/archive/2008/07/03/1234889.html 阅读全文

posted @ 2012-08-31 14:50 另一只兔子

动态创建菜单,menustrip,根据权限显示菜单,控制菜单可用,反射,给窗体传值,反射对象传值,public static Object CreateInstance ( Type type, params Object[] args )
摘要:文章來源: 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 阅读全文

posted @ 2012-08-31 14:47 另一只兔子 阅读(336) 评论(0) 推荐(0)

[ASP.NET][C#]app.config與web.config的增加、修改、刪除操作
摘要:[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兩個命名空間,要使用它,需要加入參.. 阅读全文

posted @ 2012-08-28 16:09 另一只兔子 阅读(467) 评论(0) 推荐(0)

导航