public MainForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); // // TODO: Add constructor code after the InitializeComponent() call. // // Set m_planningPainter = new PlanningPainter(pictureBox1); pictureBox1.Paint += new System.Windows.Forms.PaintEventHandler(this.m_planningPainter.Paint); }