I have a WinForm containing a bindingNavigator at the top and a splitContainer with two horisontal panels below it. The splitContainer fills the space not occupied by the bindin
As pointed out by Lee:
Set the FixedPanel property to the panel you want to remain the same size.
This works like this:
teamSplitContainer.SplitterDistance = teamSplitContainer.Height - 100;
teamSplitContainer.FixedPanel = FixedPanel.Panel2;
I'd use a TableLayoutControl for something like this rather than a Splitter.
If you want only show and disable the panel (no automatic resize, no resize by the user) add to the code by Sakkle this line:
teamSplitContainer.IsSplitterFixed = true;
Set the FixedPanel property to the panel you want to remain the same size.
Best way you can set isSplitterFixed Property to "True"