public Form1() { InitializeComponent(); // Setup the event handlers. Application.ApplicationExit += OnApplicationExit; Paint += new PaintEventHandler(DrawRegion_Paint); MouseClick += new MouseEventHandler(DrawRegion_MouseClick); // Enable double buffering. DoubleBuffered = true; // Initialize the game application. gameApp.Initialize(); }