摘要: 在菜单项上右击选择Begin a Group 阅读全文
posted @ 2013-09-10 14:47 程路 阅读(422) 评论(0) 推荐(0)
摘要: 在NavBarControl控件的LinkClicked事件中使用e.Link.Caption就可以获得点击项的名称 阅读全文
posted @ 2013-08-29 18:46 程路 阅读(235) 评论(0) 推荐(0)
摘要: string tulipath = Application.StartupPath + "//tuli.xml";//xml路径 XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(tulipath);//加载xml XmlNode root = xmlDoc.SelectSingleNode("//root");//寻找root节点 string groups = ""; if (root != null) { groups = (root.SelectSingleNode(&qu 阅读全文
posted @ 2013-08-29 17:16 程路 阅读(321) 评论(0) 推荐(0)
摘要: 可以使用System.Data.OleDb.OleDbConnection连接Access数据库 然后通过conn.GetSchema读出想要的信息: 包括数据库的表名、字段名、类型/// /// 返回Mdb数据库中所有表表名 /// publicstring[] GetShemaTableName(string database_path, string database_password) { try { //获取数据表 OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = "Pr... 阅读全文
posted @ 2013-08-28 22:50 程路 阅读(587) 评论(0) 推荐(0)