以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  TextBox控件的一个问题!  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=86938)

--  作者:大红袍
--  发布时间:2016/6/29 11:58:00
--  

注意红色代码

 

Dim name = "窗口1"
Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1")
tab.TabPages.Add(name,name)
Dim pb = tab.BaseControl
Forms(Name).OPEN(-1000,-1500)
Forms(Name).BaseForm.TopLevel = False
Forms(Name).BaseForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Forms(Name).BaseForm.Dock = System.Windows.Forms.DockStyle.Fill
PB.TabPages(name).Controls.Clear
PB.TabPages(name).Controls.add(Forms(Name).BaseForm)
tab.SelectedPage = tab.TabPages(name)

tab.select