06 2014 档案
摘要:public void ExportDataToExecel(DataGridView dataGridView1){ SaveFileDialog kk = new SaveFileDialog(); kk.Title = "保存EXECL文件"; ...
阅读全文
摘要:[DllImport("user32.dll", EntryPoint = "GetScrollInfo", CallingConvention = CallingConvention.StdCall)] public static extern bool GetScr...
阅读全文
摘要:string strConn; strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Extended Properties='Excel 8.0;HDR=F...
阅读全文
摘要:1、检查数据库连接的有效性 var client = new System.Net.Sockets.TcpClient(); var ar = client.BeginConnect(host, 1433, null, null); ar.AsyncWaitHandle.WaitOn...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { /// /// 公用的特殊函数 /// public class SpecialFunctions { ...
阅读全文