会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一!雨
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2019年4月10日
win10 requireAdministrator设置开机自启动无效的解决方案
摘要: 开发了一个wpf程序,需要管理员权限,设置了requireAdministrator 同时需要开机自启动,所以添加了注册表:
阅读全文
posted @ 2019-04-10 10:00 一!雨
阅读(3064)
评论(0)
推荐(0)
2019年3月25日
wpf textblock超出显示范围后显示tooltip
摘要: public static class TextTrmmingShowToolTip { public static readonly DependencyProperty IsToolTipProperty = DependencyProperty.RegisterAttached( "IsToo
阅读全文
posted @ 2019-03-25 14:44 一!雨
阅读(1645)
评论(0)
推荐(0)
2019年1月31日
c# 调用系统默认图片浏览器打开图片
摘要: private void OpenImage(string fileName) { try { Process.Start(fileName); } catch (Exception ex) { // LogHelper.WriteLog("调用默认看图软件打开失败", ex); try { str
阅读全文
posted @ 2019-01-31 10:35 一!雨
阅读(4109)
评论(0)
推荐(0)
2018年9月30日
aspose ppt转图片
摘要: 如果直接转图片,会很模糊采用先将ppt转pdf,在通过pdf转图片,这样出来的结果就非常清晰 var pptFileName = "公司网络及计算机使用与要求.pptx"; Presentation ppt = new Presentation(pptFileName); Stream st=new
阅读全文
posted @ 2018-09-30 14:47 一!雨
阅读(2268)
评论(0)
推荐(0)
2018年7月4日
vs调试时不抛出异常的解决方案
摘要: 选项->调试->常规->启用“仅我的代码” 打勾
阅读全文
posted @ 2018-07-04 17:06 一!雨
阅读(786)
评论(0)
推荐(1)
2018年6月27日
c# json.net xml互转
摘要: json转xml: XmlDocument doc = (XmlDocument)JsonConvert.DeserializeXmlNode(jsonText,"root"); xml转json: XmlDocument doc = new XmlDocument(); doc.Load(xmlF
阅读全文
posted @ 2018-06-27 15:34 一!雨
阅读(4509)
评论(0)
推荐(0)
2018年5月5日
wpf仿qq边缘自动停靠,支持多屏
摘要: wpf完全模仿qq边缘自动隐藏功能,采用鼠标钩子获取鼠标当前状态,在通过当前鼠标的位置和点击状态来计算是否需要隐藏。 以下是实现的具体方法: 一、鼠标钩子实时获取当前鼠标的位置和点击状态 /// <summary> /// 鼠标全局钩子 /// </summary> public class Mou
阅读全文
posted @ 2018-05-05 21:59 一!雨
阅读(965)
评论(0)
推荐(0)
2018年4月17日
c# 新中新二代身份证阅读,包含头像,支持华视
摘要: 需要用到dll和文件: 其中3个dll文件是需要调用的dll,license.dat文件为解压图片的授权文件 以下是需要用到的dll里面的方法: /************************端口类API *************************/ [DllImport("idCard
阅读全文
posted @ 2018-04-17 17:55 一!雨
阅读(4565)
评论(1)
推荐(0)
2018年4月16日
获取剪切板上DataFormats.Dib格式的文件
摘要: if (formats.Contains(System.Windows.Forms.DataFormats.Dib)) { using (var img = System.Windows.Forms.Clipboard.GetImage()) { string fileName = Guid.New
阅读全文
posted @ 2018-04-16 10:11 一!雨
阅读(355)
评论(0)
推荐(0)
2018年3月13日
Asp.net 微信企业号网页开发流程
摘要: 一、在pageload方法中获取code var code = GetCode(); private string GetCode() { return HttpContext.Current.Request["code"]; } 二、如果code为空,需要重定向到微信获取code //当前页面对应
阅读全文
posted @ 2018-03-13 17:20 一!雨
阅读(300)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告