public Chart(Client c) { this.c = c; SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.DoubleBuffer, true); oldPoint = new Point(c.GetPanel1().Width, (int)-(25 / 2.3)); UpdateStyles(); this.DoubleBuffered = true; }