Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     ballDoc = new BallDoc();
     timer1  = new Timer();
     timer1.Start();
     x = 20;
     y = 40;
     this.DoubleBuffered = true;
 }
Exemplo n.º 2
0
 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();
 }