以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  页面集合问题  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=114802)

--  作者:ZJZK2018
--  发布时间:2018/2/22 21:30:00
--  页面集合问题
老师你好:
我想打开窗口时,关闭页面集合,点后打开,如何修改下面代码?


\'筛选设置左侧停靠-------------------------------
Dim CmdDock As New C1Command.C1CommandDock
CmdDock.Name = "CmdDock"
CmdDock.BackColor = System.Drawing.SystemColors.Control
CmdDock.Dock = Windows.Forms.DockStyle.Left
CmdDock.AutoDockTop = False
CmdDock.AutoDockBottom = False
CmdDock.DockingStyle = C1Command.DockingStyle.VS2005
e.Form.Panel.Controls.Add(CmdDock)

Dim TabCtl As C1Command.C1DockingTab = e.Form.Controls("TabControl").BaseControl
TabCtl.VisualStyle = C1Command.VisualStyle.Office2007Blue
TabCtl.HotTrack = True
TabCtl.ShowCaption = True
TabCtl.ShowTabList = True
TabCtl.CanAutoHide = True
CmdDock.Controls.Add(TabCtl)


图片点击可在新窗口打开查看此主题相关图片如下:fpt4evib5_l_84dc0vig`u2.png
图片点击可在新窗口打开查看


图片点击可在新窗口打开查看此主题相关图片如下:打开窗口时所需样子.png
图片点击可在新窗口打开查看

[此贴子已经被作者于2018/2/22 21:32:05编辑过]

--  作者:有点甜
--  发布时间:2018/2/22 21:36:00
--  

\'筛选设置左侧停靠-------------------------------
Dim CmdDock As New C1Command.C1CommandDock
CmdDock.Name = "CmdDock"
CmdDock.BackColor = System.Drawing.SystemColors.Control
CmdDock.Dock = Windows.Forms.DockStyle.Left
CmdDock.AutoDockTop = False
CmdDock.AutoDockBottom = False
CmdDock.DockingStyle = C1Command.DockingStyle.VS2005
e.Form.Panel.Controls.Add(CmdDock)


Dim TabCtl As C1Command.C1DockingTab = e.Form.Controls("TabControl1").BaseControl
TabCtl.VisualStyle = C1Command.VisualStyle.Office2007Blue
TabCtl.HotTrack = True
TabCtl.ShowCaption = True
TabCtl.ShowTabList = True
TabCtl.CanAutoHide = True
CmdDock.Controls.Add(TabCtl)
TabCtl.autohiding = True