博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年8月6日

摘要: --------------//获取Access数据库表名 public void GetTableName() { string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @"C:\信息技术考试成绩.mdb"; OleDbConnection conn = new OleDbConnection(connStri... 阅读全文

posted @ 2010-08-06 14:16 moss_tan_jun 阅读(489) 评论(0) 推荐(0) 编辑

摘要: private void button3_Click(object sender, EventArgs e) { Thread thread = null; //为了不让界面死掉,要将该操作放在一个线程中 thread = new Thread ( () => { //告诉系统不去检测非法的跨线程调用 CheckForIllegalCrossThreadCalls = false; ... 阅读全文

posted @ 2010-08-06 14:14 moss_tan_jun 阅读(256) 评论(0) 推荐(0) 编辑

摘要: private static string[] GetExcelSheetNames(OleDbConnection conn) { DataTable dtbSheets = null; String[] arrExcelSheets = null; using (conn) { try { conn.Open(); // Get the data table containing the sc... 阅读全文

posted @ 2010-08-06 10:13 moss_tan_jun 阅读(757) 评论(0) 推荐(0) 编辑