protected void InvalidateEx() { if(Parent == null) return ; Rectangle rc = new Rectangle(this.Location, this.Size); Parent.Invalidate(rc, true); } protected override void OnPaintBackground(PaintEventArgs e){ } protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x00000020; //WS_EX_TRANSPARENT InvalidateEx(); return cp; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)