摘要: 读取xml文件时,查询中 DataSet ds = new DataSet(); ds.ReadXml("xx.xml"); DataRow[] drs = ds.tables[0].Select("Id=" + ID ); 报错:在 Range 对象中,Min (12)必须小于或等于 max (- 阅读全文
posted @ 2011-11-25 10:07 BBDN 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: string[] lines = File.ReadAllLines("aa.txt",Encoding.GetEncoding("GB2312"));string name = lines[0]; 阅读全文
posted @ 2011-11-25 10:00 BBDN 阅读(406) 评论(0) 推荐(0) 编辑
摘要: C# 获取路径string str1 =Process.GetCurrentProcess().MainModule.FileName;//获得当前执行的exe的文件名。string str2=Environment.CurrentDirectory;//获取和设置当前目录的完全限定路径。strin 阅读全文
posted @ 2011-11-22 10:53 BBDN 阅读(1918) 评论(0) 推荐(0) 编辑
摘要: btn1_Click(object sender,eventargs e){ btn2_Click(sender,e);} private void btn2_Click(object sender, EventArgs e){ //数据处理} 阅读全文
posted @ 2011-11-15 10:27 BBDN 阅读(1080) 评论(0) 推荐(0) 编辑