runliuv

runliuv@cnblogs

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

07 2013 档案

摘要:OpenFileDialog 打开 .lnk 文件。OpenFileDialog 有个DereferenceLinks属性:获取或设置一个值,该值指示文件对话框是返回快捷方式引用的文件的位置,还是返回快捷方式文件 (.lnk) 的位置。 阅读全文
posted @ 2013-07-27 23:03 runliuv 阅读(460) 评论(0) 推荐(0)

摘要:在internet 选项-“安全”选项卡-自定义级别。 在“脚本”下面找到“允许对剪切板进行编程访问”,选择“启用”即可。-END 阅读全文
posted @ 2013-07-26 15:31 runliuv 阅读(338) 评论(0) 推荐(0)

摘要:原文:http://www.cnblogs.com/codealone/p/3208620.html 打开SVN客户端 常规设置 全局忽略样式,尾部添加 bin obj [Dd]ebug Release temppe *.suo *.pdsync *.projdata *.vbproj.user * 阅读全文
posted @ 2013-07-26 10:07 runliuv 阅读(10083) 评论(0) 推荐(1)

摘要:stringpath="c:\windows";Process.Start("explorer.exe", path); 阅读全文
posted @ 2013-07-24 14:55 runliuv 阅读(340) 评论(0) 推荐(0)

摘要:设置窗体属性KeyPreview=True。private void Form1_KeyUp(object sender, KeyEventArgs e){ if (e.KeyData == Keys.Escape)Application.Exit();} 阅读全文
posted @ 2013-07-24 14:29 runliuv 阅读(480) 评论(0) 推荐(0)

摘要:当分辨率是800 *600时,底部的按钮无法显示,不能继续安装。可以在右上角,点击电源按钮,在系统设置中调整显示的分辨率后,继续安装。 阅读全文
posted @ 2013-07-24 09:36 runliuv 阅读(1928) 评论(0) 推荐(0)

摘要:加上-ep1 参数即可。rar u -m3 -s -r -o+ -ep1 -x*.zip client_zmv9.zip ".\client_zmv9\*" 阅读全文
posted @ 2013-07-11 10:17 runliuv 阅读(807) 评论(0) 推荐(0)

摘要:SqlConnection sconn = null; SqlCommand scmd = null; SqlTransaction strans = null; try { string sqlInsert = string.Format(@"insert into MyName (myid,myfname,mymname,mylname) values ('{0}','c','c','c')", Guid.NewGuid().ToSt... 阅读全文
posted @ 2013-07-11 09:52 runliuv 阅读(3600) 评论(0) 推荐(0)

摘要:IList lstsf = Enum.GetNames(typeof(Environment.SpecialFolder)); foreach (string sf in lstsf) { Environment.SpecialFolder sfType = (Environment.SpecialFolder)Enum.Parse(typeof(Environment.SpecialFolder), sf); string specDir = Environment.GetFolderPath(sfType); }还有个Enum.GetValues 方法 .通过名称转为枚举: Enviro. 阅读全文
posted @ 2013-07-05 21:07 runliuv 阅读(824) 评论(0) 推荐(0)

摘要:StreamWriter Flush 即可。FileStream Flush 无用。 阅读全文
posted @ 2013-07-05 11:57 runliuv 阅读(273) 评论(0) 推荐(0)

摘要:ToString MM 小写,有可能时间转为 :2013-49-02,放到数据库中查询,就报错。 阅读全文
posted @ 2013-07-03 15:40 runliuv 阅读(212) 评论(0) 推荐(0)