Fixed Panel Height in a SplitContainer

前端 未结 5 1345
情深已故
情深已故 2021-02-20 14:07

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

5条回答
  •  粉色の甜心
    2021-02-20 14:25

    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;
    

提交回复
热议问题