以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]Panel1.Height设置没有反应  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=80875)

--  作者:vvfree
--  发布时间:2016/2/5 1:04:00
--  [求助]Panel1.Height设置没有反应

Dim SC1 As WinForm.SplitContainer = e.Form.Controls("SplitContainer1")
SC1.Panel1.Height = 100

无反应


--  作者:大红袍
--  发布时间:2016/2/5 9:28:00
--  

1、你只能设置,如 sc1.Height = 100

 

2、如果要控制分割条的位置,这样写

 

Dim SC1 As WinForm.SplitContainer = e.Form.Controls("SplitContainer1")
sc1.SplitterDistance = 100