public Form1() { InitializeComponent(); ballDoc = new BallDoc(); timer1 = new Timer(); timer1.Start(); x = 20; y = 40; this.DoubleBuffered = true; }
public Form1() { InitializeComponent(); Balls = new BallDoc(); this.DoubleBuffered = true; left = 20; top = 60; width = this.Width - (3 * left); height = this.Height - (int)(2.5 * top); timer1.Start(); }