2016年10月15日

2015.1.4 判断鼠标点击DataGridView的第几行还是空白处

摘要: public int GetRowIndexAt(int mouseLocation_Y) { if (dvaw.FirstDisplayedScrollingRowIndex < 0) { return -1; } if (dvaw.ColumnHeadersVisible == true && 阅读全文

posted @ 2016-10-15 17:08 mol1995 阅读(637) 评论(0) 推荐(0)

2015.1.3 让CombBox自动弹出下拉框

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

posted @ 2016-10-15 17:07 mol1995 阅读(236) 评论(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 阅读(534) 评论(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 阅读(214) 评论(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 阅读(129) 评论(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 阅读(274) 评论(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 阅读(422) 评论(0) 推荐(0)

2014.10.1 DateTime的加减函数

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

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

2014.10.1 Spy找对话框

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

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

2014.10.1 Form中显示pdf文件

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

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

导航