示例#1
0
 public Form1()
 {
     InitializeComponent();
     ballDoc = new BallDoc();
     timer1  = new Timer();
     timer1.Start();
     x = 20;
     y = 40;
     this.DoubleBuffered = true;
 }
示例#2
0
文件: Form1.cs 项目: kmartin62/VP
 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();
 }