2016年6月24日
摘要:
Create view 视图名称 as +查询语句。(只是对Select 的语句的一种封装) aleart 修改视图 Drop 删除视图 exec sp-helptext 查看视图语句 create proc 存储名称 参数列表( 参数名称,多个用逗号隔开) as 自定义代码段 例子: create
阅读全文
posted @ 2016-06-24 14:43
路上有你F
阅读(977)
推荐(0)
2016年6月22日
摘要:
private void txtSum_KeyPress(object sender, KeyPressEventArgs e) { if((e.KeyChar!=8 && !char.IsDigit(e.KeyChar)) && e.KeyChar != 13&&e.KeyChar!=46) {
阅读全文
posted @ 2016-06-22 08:52
路上有你F
阅读(161)
推荐(0)
2016年5月27日
摘要:
/// <summary> /// 读取Excel数据 /// </summary> private void NewMethod() { string str = @"Provider=Microsoft.ACE.OLEDB.12.0;Persist Security Info=False;Dat
阅读全文
posted @ 2016-05-27 16:16
路上有你F
阅读(171)
推荐(0)
2016年5月26日
摘要:
DateTime.Now.ToString("D"); //格式: 2010年10月22日 DateTime.Now.ToString("f"); //格式: 2010年10月22日 9:26 DateTime.Now.ToString("F"); //格式: 2010年10月22日 9:26:38
阅读全文
posted @ 2016-05-26 17:01
路上有你F
阅读(138)
推荐(0)
摘要:
[DllImport("user32.dll")] private static extern void LockWorkStation();
阅读全文
posted @ 2016-05-26 11:18
路上有你F
阅读(93)
推荐(0)
摘要:
设置datagridview的dock属性,或者Anchor属性。推荐使用Anchor属性
阅读全文
posted @ 2016-05-26 09:24
路上有你F
阅读(182)
推荐(0)
2016年5月10日
摘要:
dgvconfirm.Columns["罐号"].Frozen = true;//锁定列的位置 dgv_bk.Focus()dgv_bk.CurrentCell = dgv_bk.Rows[0].Cells[0] //焦点 数据插入 private int rowMax = 0; dgSplitDa
阅读全文
posted @ 2016-05-10 17:11
路上有你F
阅读(339)
推荐(0)
2016年5月4日
摘要:
方法: ADD():把集合当做一个整体加入到新集合当中 AddRange():把集合中的每个元素加入到新的集合当中 ArrayList array = new ArrayList(){"a","b","c","d"}; ArrayList array1= new ArrayList(){"a","b
阅读全文
posted @ 2016-05-04 19:44
路上有你F
阅读(88)
推荐(0)
2016年4月20日
摘要:
static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { bool login; Application.EnableVisualStyles(); Appl
阅读全文
posted @ 2016-04-20 13:59
路上有你F
阅读(917)
推荐(1)
2016年4月13日
摘要:
/*查询字符串中字母出现的个数*/ string str = " Welcom Hello World"; Dictionary<char, int> dc = new Dictionary<char, int>(); for (int i = 0; i < str.Length; i++) //遍
阅读全文
posted @ 2016-04-13 12:40
路上有你F
阅读(548)
推荐(0)