Stop splitter from scaling panels in C #?

I have a SplitContainer with filled panels.
When I resize it, both panels scale equally, so that the splitter is at the same distance in the container.
I really need to block this function. How to do it?

+5
source share
2 answers

Look at the property FixedPanel. You can then indicate whether you want to install Panel1or Panel2. Three options:

No (this is the default value)

Indicates that neither SplitContainer.Panel1, SplitContainer.Panel2 is fixed. The Control.Resize event affects both panels.

Panel1

, SplitContainer.Panel1 . Control.Resize SplitContainer.Panel2.

2

, SplitContainer.Panel2 . Control.Resize SplitContainer.Panel1.

+14

FixedPanel , , . None, .

+2

All Articles