public DMControl() { InitializeComponent(); this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.Selectable | ControlStyles.DoubleBuffer | ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.Opaque, false); base.BackColor = Color.Transparent; this.UpdateStyles(); if (items==null) { items = new DMControlItemCollection(this); } }
public DMControl() { InitializeComponent(); this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.Selectable | ControlStyles.DoubleBuffer | ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.Opaque, false); base.BackColor = Color.Transparent; this.UpdateStyles(); if (items == null) { items = new DMControlItemCollection(this); } }