Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide a panel that is on a SplitContainer?

Tags:

c#

.net

winforms

I want to hide panel2 on a split container and have panel1 utilize the space. I was hoping setting Panel2Collapsed would do the trick, but no luck. Ideas?

like image 604
CrashCodes Avatar asked Mar 14 '09 06:03

CrashCodes


1 Answers

This worked for me on a similar situation:

splitContainer1.Panel2Collapsed = true; splitContainer1.Panel2.Hide(); 

I wanted the second panel to not be visible at all in some cases, so I implemented it this way.

like image 140
Nikos Steiakakis Avatar answered Oct 04 '22 13:10

Nikos Steiakakis