protected override void OnPaint(PaintEventArgs e) { ValidateState(); if (DesignMode) e.Graphics.Clear(BackColor); base.OnPaint(e); }