I can't seem to figure out how to keep a panel's width fixed in a Split Container in a WinForm.
Any suggestions?
In order to make panel1
fixed
In the properties of the SplitContainer
, set the FixedPanel
property to Panel1
.
Then, set the SplitDistance
and Panel1MinSize
to the same value.
property SplitterPanel.FixedPanel
- set one of the panels to fixed size
property SplitterPanel.IsSplitterFixed
- set to true
If you'd keep one panel's size fixed, there is no logical way to move the splitter. Since you can't move the splitter, it just doesn't make sense to use a SplitContainer anymore. Use two Panel controls.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With