Bohn
Bohn

Reputation: 26919

setting a minimum allowed size for the panels of SplitterContainer

Greeting, in C# WinForms: I have a splitterContainer. and lets sat there is Docked to Fill TableLayout in SplitterContainer.Panel1 now when I move the Splitter bar, it can cover the area of each of its panels. so it can even hide one of its panels when we move the splitter bar. But I do not want it! I want to have a limit for that. the minimum size I want to always be available for the panels of the SplitteRContainer is the size that is necessary for the contents that are already inside each panel of it. I do not want to be able to hide one panel and its contents by moving the splitter bar, so when it gets to that point I want it to stop moving and resizing the panels. Can you please help me on how to make this happen?

Upvotes: 1

Views: 3859

Answers (1)

SLaks
SLaks

Reputation: 887489

Set the Panel1MinSize property.

Upvotes: 3

Related Questions