public Form1() { InitializeComponent(); outputPanel = new OutputPanel(new PaintToolsCollection()); DrawPanel.Controls.Add(outputPanel); outputPanel.Width = DrawPanel.Width; outputPanel.Height = DrawPanel.Height; outputPanel.Add(new EmptyTool()); }