protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); g = new Graphics.Graphics(e.Graphics); this.BeforePaint(g); }