自定义控件支持Tab键停留
2012-02-06
public UButtonEx()
{
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.UserMouse, true);
this.UpdateStyles();
this.TabStop = true;
this.BackColor = Color.Transparent;
...