以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 动态增加SplitContainer错误,求解 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=194415) |
-- 作者:hongye -- 发布时间:2024/12/8 0:29:00 -- 动态增加SplitContainer错误,求解 Dim Page1 As WinForm.NavPage Dim SC1 As WinForm.SplitContainer SC1 = e.Form.CreateControl("SContainer1", ControlTypeEnum.SplitContainer) SC1.Dock = 5 Page1.AddControl(SC1) Dim SpC1 As WinForm.SplitContainer = SC1 SpC1.BorderStyle = BorderStyle.Fixed3D SpC1.Orientation = 0 SpC1.IsSplitterFixed = True SpC1.SplitterWidth = 4 SpC1.SplitterDistance = (SpC1.Height - SpC1.SplitterWidth) / 6 * 5.2 SpC1.BackColor = Color.Transparent 这代码在停靠窗口没问题,但是当窗口改成共有窗口时就会发生错误 请帮忙看看怎么错了
|
-- 作者:有点蓝 -- 发布时间:2024/12/8 20:13:00 -- 我测试没有问题,请上传实例说明 |