自定义属性之双缓冲
//双缓冲
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;
浙公网安备 33010602011771号