欢迎加我的QQ群:193522571,一起来讨论、交流!

03 2017 档案

摘要:http://www.cnblogs.com/gosteps/p/5289955.html 阅读全文
posted @ 2017-03-20 10:15 swtool 阅读(111) 评论(0) 推荐(0) 编辑
摘要:最近在做一个程序,需要实现窗口下的F5 刷新功能。 研究了一下KeyDown,KeyPress 和KeyUp ,发现之间还是有点学问的。 让我们带着如下问题来说明,如果你看到这些问题你都知道,那么这篇文章你就当复习吧:) 1.这三个事件的顺序是怎么样的? 2.KeyDown 触发后,KeyUp是不是 阅读全文
posted @ 2017-03-16 08:38 swtool 阅读(327) 评论(0) 推荐(0) 编辑
摘要:首先定义一个枚举 /// <summary> /// 枚举注释的自定义属性类 /// </summary> public class EnumDescriptionAttribute : Attribute { private string m_strDescription; public Enum 阅读全文
posted @ 2017-03-14 09:55 swtool 阅读(9082) 评论(0) 推荐(0) 编辑
摘要:#region 得到光标在屏幕上的位置 [DllImport("user32")] public static extern bool GetCaretPos(out Point lpPoint); [DllImport("user32.dll")] private static extern In 阅读全文
posted @ 2017-03-14 09:53 swtool 阅读(404) 评论(0) 推荐(0) 编辑

欢迎加我的QQ群:193522571,一起来讨论、交流!
点击右上角即可分享
微信分享提示