且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

固定面板高度在SplitContainer中

更新时间:2023-12-06 10:07:16

正如李:

将FixedPanel属性要保持相同尺寸的面板。

Set the FixedPanel property to the panel you want to remain the same size.

这是这样的:

teamSplitContainer.SplitterDistance = teamSplitContainer.Height - 100;
teamSplitContainer.FixedPanel = FixedPanel.Panel2;