Dim name As String = Args(0)
\'msgbox(name)
Dim text As String = Args(1)
Dim fundatatable As String = Args(2)
Dim funform As String = Args(3)
var_datatable = fundatatable
var_form = funform
Dim tab As WinForm.TabControl = forms("主窗口").Controls("TabControl1")
If tab.TabPages(name) Is Nothing Then
tab.TabPages.Add(name,text)
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)
Else
tab.SelectedPage = tab.TabPages(name)
End If