SplitContainer 2中的SplitContainer第二个SplitContainer SpliterWidth不起作用 [英] SplitContainer in SplitContainer 2nd SplitContainer SpliterWidth not functioning

查看:220
本文介绍了SplitContainer 2中的SplitContainer第二个SplitContainer SpliterWidth不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SplitPanels具有两个面板,这些面板由分离器分开.只需更改spliterwidth的值即可更改拆分器的宽度.我需要3个面板而不是2个面板,因此我将一个新的splitcontainer放入了第一个容器中,特别是在panel2中.我已将两个splitwidth都更改为32,但是由于某些原因,第二个容器将默认值用于splitwidth.有什么想法吗?

SplitPanels have two panels which are seperated by a spliter. One has the ability to change the width of the spliter simply by changing the value of spliterwidth. I needed 3 panels not two, so I put a new splitcontainer in the first container specifically in panel2. I''ve changed both splitwidth''s to 32, but for some reason the second container uses the default value for splitwidth. Any ideas?

推荐答案

作为解决方案,不知道它是否是最好的.我把this.splitercontainer2.spliterwidth = 32;初始化后.
As a solution don''t know if it is the best. I put this.splitercontainer2.spliterwidth = 32; after the initialization.


检查Splitter1的Panel2中的Splitter2是否设置了其Dock属性,并且它可能具有大小/调整大小的副作用.
Check to see if Splitter2 in Panel2 of Splitter1 has its Dock property set, and this may be having size/re-size side-effects.


这篇关于SplitContainer 2中的SplitContainer第二个SplitContainer SpliterWidth不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆