摘要: 这两天用到了自定义控件的设计时鼠标响应事件,查了些资料,记下来备查。要实现自定义控件的设计时鼠标响应事件,需要分别从Glyph类和Behavior类派生出自己的类,然后重写Behavior类的OnMouseDown事件,详细信息可以参考MSDN中的BehaviorService Class1。添加引用System.Design.dll2。设计时鼠标响应事件支持类DesignSupport.csusing System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Windows.Forms 阅读全文
posted @ 2014-02-28 20:23 青田 阅读(4535) 评论(0) 推荐(1) 编辑