上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页
摘要: [DllImport("user32.dll", EntryPoint = "GetScrollInfo", CallingConvention = CallingConvention.StdCall)] public static extern bool GetScr... 阅读全文
posted @ 2014-06-11 17:36 慧由心生 阅读(4323) 评论(0) 推荐(0)
摘要: string strConn; strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Extended Properties='Excel 8.0;HDR=F... 阅读全文
posted @ 2014-06-10 15:00 慧由心生 阅读(395) 评论(0) 推荐(0)
摘要: 1、检查数据库连接的有效性 var client = new System.Net.Sockets.TcpClient(); var ar = client.BeginConnect(host, 1433, null, null); ar.AsyncWaitHandle.WaitOn... 阅读全文
posted @ 2014-06-10 14:54 慧由心生 阅读(9000) 评论(1) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { /// /// 公用的特殊函数 /// public class SpecialFunctions { ... 阅读全文
posted @ 2014-06-06 17:13 慧由心生 阅读(17391) 评论(0) 推荐(4)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication2{ class... 阅读全文
posted @ 2014-05-28 14:49 慧由心生 阅读(339) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Runtime.InteropServices;using System.Text;namespace Common{ public cla... 阅读全文
posted @ 2014-05-20 19:51 慧由心生 阅读(1115) 评论(0) 推荐(0)
摘要: 【【【【C#压缩文件】】】】方法1: //【filepath想要压缩文件的地址】 //【zippath输出压缩文件的地址】 private void GetFileToZip(string filepath,string zippath) { FileStrea... 阅读全文
posted @ 2014-05-13 15:27 慧由心生 阅读(311) 评论(0) 推荐(1)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ /// /// TextBox控... 阅读全文
posted @ 2014-05-07 14:01 慧由心生 阅读(3793) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ /// /// 列表视图操作类 ... 阅读全文
posted @ 2014-05-07 13:59 慧由心生 阅读(2327) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ /// /// DataGrid... 阅读全文
posted @ 2014-05-07 13:54 慧由心生 阅读(634) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页