public Form1() { InitializeComponent(); this.Text = "Draw different shapes"; pictureBox1.Paint += new PaintEventHandler(pictureBox1_Paint); Canvas = pictureBox1; rtb1 = richTextBox1; _host = new Host(); _host.ExecuteInCurrentScope("from Shapes import *"); _history = new CommandHistory(); ResetConsole(); }