Is it possible to remove panel2 from SplitContainer in Windows Forms?

.net, c#, winforms

Solution

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();

Problem

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?

Original source