2017年8月25日

NPOI

摘要: HSSFWorkbook:是操作Excel2003以前(包括2003)的版本,扩展名是.xls XSSFWorkbook:是操作Excel2007的版本,扩展名是.xlsx 阅读全文

posted @ 2017-08-25 18:00 路人甲zzz 阅读(172) 评论(0) 推荐(0) 编辑

2017年8月2日

存储过程

摘要: use CallingBSgoif (exists (select * from sys.objects where name = 'proc_UpdateInsertUpdate')) drop proc proc_UpdateInsertUpdatego create proc proc_Upd 阅读全文

posted @ 2017-08-02 15:54 路人甲zzz 阅读(89) 评论(0) 推荐(0) 编辑

2017年4月25日

XML

摘要: public int num = 0; /// /// 关闭背光 /// public void CloseOtherBackLight() { string path = GFun.GetDataDir() + "CloseOtherBackLight.xml"; ... 阅读全文

posted @ 2017-04-25 14:45 路人甲zzz 阅读(99) 评论(0) 推荐(0) 编辑

2017年1月6日

sql 2008 游标

摘要: begin declare PlatformBulletin --定义游标 cursor for select UserID,ZMSCompanyID from base_UserCompany where isActive = 1 open PlatformBulletin --打开游标 declare ... 阅读全文

posted @ 2017-01-06 11:19 路人甲zzz 阅读(107) 评论(0) 推荐(0) 编辑

2016年12月30日

数据库转换

摘要: convert(varchar(100),ID 阅读全文

posted @ 2016-12-30 15:46 路人甲zzz 阅读(89) 评论(1) 推荐(0) 编辑

2016年10月8日

获取公网IP

摘要: private static string GetIP() { string tempip = ""; try { WebRequest wr = WebRequest.Create("http://ip.myhostadmin.net/"); ... 阅读全文

posted @ 2016-10-08 15:53 路人甲zzz 阅读(262) 评论(0) 推荐(0) 编辑

2016年9月29日

获取本机IP

摘要: Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault<IPAddress>(a => a.AddressFamily.ToString().Equals("InterNetwork")).ToString() 阅读全文

posted @ 2016-09-29 16:18 路人甲zzz 阅读(133) 评论(0) 推荐(0) 编辑

2016年8月16日

C#模拟键盘事件

摘要: keybd_event方法的第一个参数值有: keybd_event(0x11, 0, 0, 0)是CTRL 键 按下 keybd_event(0x11, 0, 2, 0)是CTRL 键 松开) vbKeyLButton 0x1 鼠标左键 vbKeyRButton 0x2 鼠标右键 vbKeyCan 阅读全文

posted @ 2016-08-16 15:02 路人甲zzz 阅读(2615) 评论(0) 推荐(0) 编辑

2016年7月27日

WPF 重新启动该程序

摘要: // Restart current process Method 1 System.Windows.Forms.Application.Restart(); Application.Current.Shutdown(); // Restart current process Method 2 System.Reflection.Assembly.GetEntryAssem... 阅读全文

posted @ 2016-07-27 14:12 路人甲zzz 阅读(3108) 评论(0) 推荐(0) 编辑

2016年6月2日

Winform水印

摘要: 本文实例展示了WinForm实现为TextBox设置水印文字功能,非常实用的技巧,分享给大家供大家参考。 关键代码如下 测试代码如下: 测试效果如下图所示: 阅读全文

posted @ 2016-06-02 14:54 路人甲zzz 阅读(709) 评论(0) 推荐(0) 编辑

导航