读书人

splitcontainer使用的简单有关问题

发布时间: 2011-12-27 22:22:55 作者: rapoo

splitcontainer使用的简单问题
我希望在最大化的时候,splitcontainer.panel1的宽度不变,不知道有没有什么方法实现?


[解决办法]
IsSplitterFixed property
Determines if the splitter is movable by means of the keyboard or mouse.

SplitterDistance property
Determines the distance in pixels from the left or upper edge to the movable splitter bar.

下面那个应该可以写死宽度吧。另外在Resize事件里面通过指定panel1的宽度也可以锁定。

读书人网 >C#

热点推荐