老师,下面代码有报错
此主题相关图片如下:image 1.png

Dim txt2 As WinForm.TabControl
txt2 = e.Form.CreateControl("TabControl1", ControlTypeEnum.TabControl)
txt2.SetBounds(10, 120, 100, 200)
txt2.BackColor = Color.Red '背景颜色
txt2.backcolor=Color.red
e.Form.Controls("SplitContainer1") .Panel1.AddControl(txt2)
Dim t As C1Command.C1DockingTab = e.Form.Controls("TabControl1").BaseControl
t.ShowCaption = Not t.ShowCaption
Dim txt2 As WinForm.TabControl
txt2 = e.Form.CreateControl("管理按钮", ControlTypeEnum.TabControl)
txt2.TabPages.Add("主页","主页")
txt2.TabPages.Add("按钮集合","按钮集合")
txt2.Left = 1
txt2.Top = 4
txt2.Width =200 '控件长
txt2.Height=400 '控件宽
txt2.Dock = 5
Dim c1tab As C1.Win.C1Command.C1DockingTab = txt2.basecontrol
c1tab.VisualStyle = C1.Win.C1Command.VisualStyle.Custom
c1tab.TabAreaBackColor = Color.SlateGray '标题区域的背景色
c1tab.BackColor = Color.skyblue '控件背景色
Dim pg As WinForm.TabPage = txt2.TabPages(0)
pg.TabForeColorSelected= Color.blue '选定项的标题颜色
pg.TabBackColor = Color.Red '标题背景色
pg.TabBackColorSelected = Color.SeaGreen '选定项的背景色
pg.BackColor = Color.DarkSeaGreen '页面背景色
txt2 .BaseControl.font = new Font("微软雅黑",10,FontStyle.Regular) 'Bold)
e.Form.Controls("SplitContainer1").Panel1.AddControl(txt2)