自定义属性之双缓冲

//双缓冲
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.UserPaint, true);

////////////////////////
[Browsable(true)]
[Category("自定义属性")]
[Description("")]
////
////////////////////
[Browsable(true)]
[Category("自定义事件")]
[Description("双击触发事件")]
public event EventHandler PumpDoubleClick;

posted @ 2024-03-19 15:36  $虫虫$  阅读(7)  评论(0)    收藏  举报