编程很好玩!
编程很好玩!

导航

 

2009年11月27日

摘要: 1.将Property Grid 控件添加到工具箱中由于默认情况下Property Grid 控件没有显示在工具箱中所以需要手动添加。图1 将Property Grid添加到工具箱(在工具箱上右键选择添加/移除项)图2 在自定义工具箱对话框中选中PropertyGrid控件2.编写自定义类,并跟PropertyGrid控件进行绑定using System;using System.Componen... 阅读全文
posted @ 2009-11-27 14:15 lzp 阅读(14249) 评论(2) 推荐(2) 编辑
 
摘要: 连接Access数据库 string strPath = Application.StartupPath + "\\DataBase\\AccessDB.mdb"; OleDbConnection con = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source='"+strPath+"'"); OleDbDataAda... 阅读全文
posted @ 2009-11-27 13:13 lzp 阅读(485) 评论(0) 推荐(0) 编辑