public AvidaEdMainWindow() { InitializeComponent(); PopStatView = new AvidaEDPopViewStatView(); splitContainer1.Panel2.Controls.Add(PopStatView); PopStatView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); PopStatView.Dock = System.Windows.Forms.DockStyle.Fill; }