public void RemovePanel(MultiSplitPanel panel) { var index = Panels.IndexOf(panel); if (index >= 0) { SuspendLayout(); Panels.RemoveAt(index); Splits.RemoveAt(index); Controls.Remove(panel); if (Splits.Count > 0) { Splits[Splits.Count - 1] = FullSize; } AdjustPanels(); ResumeLayout(); } }