Can panel2 be removed from SplitContainer in Windows Forms?

I have a window shape with a SplitContainer. I need to hide / remove panel2 from this container, and I want panel1 to occupy the entire form. Can this be done?

+5
source share
2 answers

http://msdn.microsoft.com/en-us/library/system.windows.forms.splitcontainer.panel2.aspx

Unable to delete it.

However, you can hide this:

splitContainer1.Panel2.Hide();
+3
source

Set the property Panel2Collapsedto true:

splitContainer.Panel2Collapsed = true;
+15
source

All Articles