08 2015 档案
摘要:/// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { try { //设置应用程序处理异常方式:ThreadException处理 Application.SetUnhandledExceptionM
阅读全文
摘要:private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Bitmap bit = new Bitmap(this.Width, this.Height);
阅读全文
摘要:if (txt01.Text != "") { this.lbzhantie.Items.Clear(); this.dtzhuanhuo.Rows.Clear(); if (txt01...
阅读全文
摘要:private static string sPath = @Directory.GetCurrentDirectory() + "\\config.ini"; [DllImport("kernel32")] private static extern long WritePrivateProfil
阅读全文
摘要:记得先引用DLL private FilterInfoCollection videoDevices; private VideoCaptureDevice videoSource; BLL.AWBListBLL alb = new AWBListBLL(); public FormPhoto()
阅读全文
摘要:public void ExportToSvc1(string strFileName) { string strPath = strFileName + ".csv"; StringBuilder strValue = new Strin...
阅读全文
摘要:public void AllDataSetToExcel(DataSet ds) { string saveFileName = ""; bool fileSaved = false; Microsoft.Win32...
阅读全文
摘要:起初using就明白一个作用 那就是引用命名空间。当面试官听到我回答这个问题的时候,马上就还问我,还有什么作用?我就只能摇头了,今天在网上看了下using的作用。1.using指令。using + 命名空间名字 ,比如using System;2.using别名。using + 别名 = 包括详细命...
阅读全文
摘要:Null是.net中无效的对象引用。DBNull是一个类。DBNull.Value是它唯一的实例。它指数据库中数据为空()时,在.net中的值。null表示一个对象的指向无效,即该对象为空对象。DBNull.Value表示一个对象在数据库中的值为空,或者说未初始化,DBNull.Value对象是指向...
阅读全文