摘要: /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { try { //设置应用程序处理异常方式:ThreadException处理 Application.SetUnhandledExceptionM 阅读全文
posted @ 2015-08-25 16:02 卡玛兹 阅读(651) 评论(0) 推荐(0) 编辑
摘要: private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Bitmap bit = new Bitmap(this.Width, this.Height); 阅读全文
posted @ 2015-08-25 15:43 卡玛兹 阅读(534) 评论(0) 推荐(0) 编辑
摘要: if (txt01.Text != "") { this.lbzhantie.Items.Clear(); this.dtzhuanhuo.Rows.Clear(); if (txt01... 阅读全文
posted @ 2015-08-25 15:42 卡玛兹 阅读(546) 评论(0) 推荐(0) 编辑
摘要: private static string sPath = @Directory.GetCurrentDirectory() + "\\config.ini"; [DllImport("kernel32")] private static extern long WritePrivateProfil 阅读全文
posted @ 2015-08-25 15:40 卡玛兹 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 记得先引用DLL private FilterInfoCollection videoDevices; private VideoCaptureDevice videoSource; BLL.AWBListBLL alb = new AWBListBLL(); public FormPhoto() 阅读全文
posted @ 2015-08-25 15:38 卡玛兹 阅读(2715) 评论(0) 推荐(0) 编辑
摘要: public void ExportToSvc1(string strFileName) { string strPath = strFileName + ".csv"; StringBuilder strValue = new Strin... 阅读全文
posted @ 2015-08-25 15:32 卡玛兹 阅读(1681) 评论(0) 推荐(0) 编辑
摘要: public void AllDataSetToExcel(DataSet ds) { string saveFileName = ""; bool fileSaved = false; Microsoft.Win32... 阅读全文
posted @ 2015-08-25 15:27 卡玛兹 阅读(369) 评论(0) 推荐(0) 编辑
你好