摘要:
/// <summary> /// 写入记事本 /// </summary> /// <param name="log">日志内容</param> /// <param name="filepath">文件路径(含文件名)</param> /// <returns></returns> privat 阅读全文
摘要:
Dictionary dic = new Dictionary(); Dictionary.Enumerator en = dic.GetEnumerator(); for (int i = 0; i < dic.Count; i++) { if (en.MoveNext()) ... 阅读全文
摘要:
问题说明:Winfrom程序使用多线程连接考勤机设备的时候依然会出现界面假死的现象。 解决方案:将实例化考勤机对象实体的时候也放入到线程方法中即可。 阅读全文
摘要:
1、新建桌面 > Ctrl + Win + D 2、切换桌面 > Ctrl + Win + 左键(右键) 阅读全文
摘要:
ALTER TABLE <表名> ADD <列名> <类型> <默认值> 例:ALTER TABLE T1 ADD F1 INT DEFAULT('0') 例:alter table PRDOC_POINT_DEPT_DETAIL add del_status INT not null DEFAULT(0) 例:alter table PRDOC_POINT_DEPT_DETAIL add del 阅读全文
摘要:
服务器Windows Server 2008 R2 1、打开控制面板。 2、点击“检查防火墙状态”。 3、点击左侧“高级设置”。 4、选中“入栈规则”。 5、右侧点击“新建规则”。 6、选择“端口”。 7、选择“TCP”,选中“特定端口”并输入你要开发的端口,或者输入你要开放的端口的区间。 8、勾选 阅读全文
摘要:
cmd --> netstat-nao 阅读全文
摘要:
string path = @"d:\test"; if (false == System.IO.Directory.Exists(path)) { //创建pic文件夹 System.IO.Directory.CreateDirectory(path); } 阅读全文
摘要:
SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "Excel表格(*.xlsx)|*.xlsx"; sfd.FilterIndex = 1; sfd.RestoreDirectory = true; if (sfd.ShowDialog() == DialogResult.OK) { MessageBox.Show(sfd.FileN 阅读全文