摘要: C#类常用技巧//今天DateTime.Now.Date.ToShortDateString();//昨天,也就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateString();//明天,同理,加一DateTime.Now.AddDays(1).ToShort... 阅读全文
posted @ 2015-04-27 16:59 Vanish. 阅读(3090) 评论(0) 推荐(2) 编辑
摘要: private void CheckIdentifyingCode() { Random r = new Random(); string str = ""; for (int i = 0; i < 5; i++) ... 阅读全文
posted @ 2015-04-27 16:58 Vanish. 阅读(824) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.Configuration;using System.Reflection; namespace Process 阅读全文
posted @ 2015-04-27 16:57 Vanish. 阅读(624) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices;using System.Text;namespace connectCMCC.Utils{ /// /// INI文件操作辅助类 /// public class... 阅读全文
posted @ 2015-04-27 16:56 Vanish. 阅读(676) 评论(0) 推荐(0) 编辑
摘要: rivate void btnClear_Click(object sender, EventArgs e){ ClearCntrValue(this.pnlContent);} 复制代码/// /// 清除容器里面某些控件的值 /// /// ... 阅读全文
posted @ 2015-04-27 16:55 Vanish. 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: --1:下面这种是SQL Server中比较简单的查询SQL语句执行时间方法,通过查询前的时间和查询后的时间差来计算的:declare @begin_date datetimedeclare @end_date datetimeselect @begin_date = getdate()select... 阅读全文
posted @ 2015-04-27 16:54 Vanish. 阅读(531) 评论(0) 推荐(0) 编辑
摘要: ----一般给表中字段设定约束都是在创建表时设置----在下面的代码中演示如何在修改表(表已经创建完毕)时给字段设置约束;需要使用alter table语句(作用:修改表的结构)create table student( stuid int, stuname varchar(20), stuage ... 阅读全文
posted @ 2015-04-27 16:52 Vanish. 阅读(537) 评论(0) 推荐(1) 编辑