public void Thick(Object sender, EventArgs e) { if (thickCount % 5 == 0) { Ball.Radius = (int)(this.Width * 0.02); int randomY = r.Next(0 + Ball.Radius * 2, this.Height - Ball.Radius * 2); Ball b = new Ball(new Point(-Ball.Radius, randomY)); ballDoc.addBall(b); } thickCount++; ballDoc.Move(); Invalidate(true); }