以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  如何把窗口显示在页控件上  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=77047)

--  作者:DEZHIMA
--  发布时间:2015/11/10 12:56:00
--  如何把窗口显示在页控件上
请问如何把窗口显示在页控件上?有没有代码??
--  作者:大红袍
--  发布时间:2015/11/10 14:11:00
--  

参考

 

Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1")
Dim Name As String = "窗口2"

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)