/// <summary> /// Initialization and setup method /// </summary> /// <param name="name"></param> private void InitializeContainer(string name) { //Basic setup Name = name; IsSplitterFixed = true; SplitterDistance = 40; TabIndex = 0; //Location and Margin Location = new Point(0, 0); Margin = new Padding(2); Size = new Size(780, 749); //Orientation and other settings Dock = DockStyle.Fill; FixedPanel = FixedPanel.Panel1; Orientation = Orientation.Horizontal; //Suspended Layout Panel1.SuspendLayout(); Panel2.SuspendLayout(); SuspendLayout(); //Resume Layout Panel1.ResumeLayout(false); Panel2.ResumeLayout(false); Panel2.PerformLayout(); ResumeLayout(false); }