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 bindingNavigator.
I would like to set the bottom panel to a fixed height of, say 100 pixels, and have the top panel fill the rest of the space.
This is my current code:
kundeteamSplitContainer.SplitterDistance = kundeteamSplitContainer.Height - 100;
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;