private void Form1_Load(object sender, EventArgs e) { System.Threading.Thread.CurrentThread.Name = "FormThread"; this.pictureBox1.Width = Piece.BLOCK_WIDTH * 11; this.pictureBox1.Height = Piece.BLOCK_WIDTH * 20; this.ActiveControl = this.textBox2; m_painter = new Painter(this.pictureBox1); m_painter.Start(); m_tetris = new Tetris(); m_tetris.Stage.AddUpdateListener(OnUpdateCanvas); m_tetris.Updated += new TetrisUpdateDelegate(OnUpdateStatus); o = new KeyStateBackgroundWatcher(50, OnKeyDown, Keys.Down, Keys.Left, Keys.Right, Keys.S); o2 = new KeyStateBackgroundWatcher(150, OnKeyDown, Keys.Space); o.Watch(); o2.Watch(); }