I have a windows form with a SplitContainer. I need to hide/remove the panel2 from this container and I want the panel1 to occupy the entire form. Is it possible to do this?
Set property Panel2Collapsed
to true:
splitContainer.Panel2Collapsed = true;
http://msdn.microsoft.com/en-us/library/system.windows.forms.splitcontainer.panel2.aspx
It is not possible to remove it.
You can, however, hide it:
splitContainer1.Panel2.Hide();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With