2016年10月15日

2015.1.3 让CombBox自动弹出下拉框

摘要: cb_dir.DroppedDown = true; 阅读全文

posted @ 2016-10-15 17:07 mol1995 阅读(219) 评论(0) 推荐(0) 编辑

2015.1.3 DataGridView中嵌入其它控件

摘要: 1、按正常方法绑定待嵌入列的值,先赋值为空也行。 2、添加combbox到datagrivdview中 dvaw.Controls.Add(cb_dir); 3、添加DataGridView MouseClick事件 private void dvaw_MouseClick(object sende 阅读全文

posted @ 2016-10-15 17:06 mol1995 阅读(483) 评论(0) 推荐(0) 编辑

2014.12.22 几个有用的oracle正则表达式

摘要: SELECT REGEXP_REPLACE('LSS12345', '[^0-9]') FROM DUAL 结果:12345 '[^0-9]'中的^表示‘非’上述表达式的含义是“将LSS12345中的非数字替换掉” SELECT REGEXP_REPLACE('LSS12345', '[^0-9]' 阅读全文

posted @ 2016-10-15 17:05 mol1995 阅读(198) 评论(0) 推荐(0) 编辑

2014.10.15 播放声音

摘要: [DllImport("winmm.dll")] public static extern bool PlaySound(string pszSound, int hmod, int fdwSound); public const int SND_FILENAME = 0x00020000; pub 阅读全文

posted @ 2016-10-15 17:03 mol1995 阅读(104) 评论(0) 推荐(0) 编辑

2014.10.1 Word技巧

摘要: 设置每页都出现的表头 wordDoc.Tables[tab].Rows[1].HeadingFormat = (int)Word.WdConstants.wdToggle; //合并单元格 wordDoc.Tables[tab].Cell(row - dm.antms.Count, 1).Merge 阅读全文

posted @ 2016-10-15 17:02 mol1995 阅读(244) 评论(0) 推荐(0) 编辑

2014.10.1 Cmd更改系统时间

摘要: Process p = new Process(); //Process类有一个StartInfo属性 //设定程序名 p.StartInfo.FileName = "cmd.exe"; ////设定程式执行参数 “/C”表示执行完命令后马上退出 p.StartInfo.Arguments = st 阅读全文

posted @ 2016-10-15 17:01 mol1995 阅读(390) 评论(0) 推荐(0) 编辑

2014.10.1 DateTime的加减函数

摘要: DateTime.Now.AddDays(-2); 阅读全文

posted @ 2016-10-15 17:01 mol1995 阅读(114) 评论(0) 推荐(0) 编辑

2014.10.1 Spy找对话框

摘要: IntPtr Diaw =FindWindow("#32770","Adobe Acrobat" ); 阅读全文

posted @ 2016-10-15 16:58 mol1995 阅读(121) 评论(0) 推荐(0) 编辑

2014.10.1 Form中显示pdf文件

摘要: webBrowser1.Url = new Uri(pdfpath); 阅读全文

posted @ 2016-10-15 16:58 mol1995 阅读(118) 评论(0) 推荐(0) 编辑

2014.9.30 Double转字符

摘要: (57.0/60.0).ToString("f2")="0.95" 等于 string.Format("{0:F2}",57.0/60)="0.95"; 阅读全文

posted @ 2016-10-15 16:57 mol1995 阅读(136) 评论(0) 推荐(0) 编辑

导航