With the .NET "WinForms" SplitContainer control, how can I hide a panel dynamically?

Posted by Timothy Khouri on Stack Overflow See other posts from Stack Overflow or by Timothy Khouri
Published on 2010-04-14T16:18:21Z Indexed on 2010/04/14 16:23 UTC
Read the original article Hit count: 359

Filed under:
|
|

Calling MyPanel.Panel1.Hide(); or MyPanel.Panel2.Hide(); simply hides the controls inside the panel... but I want to have the other side of the panel fill up the whole space.

So, if I hide Panel1, I want Panel2 to take up the whole space, and I want the splitter to disappear. Is that possible, if so, how?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about winforms