老师, 想要做一个 共有筛选窗口,供不同窗口使用,发现只窗口3只能在一个窗口使用,如下,是在一个窗口中的两个面板,同时添加窗口3,发现只能添加一个,如何实现能同时添加进去2个?
Dim PB As WinForm.Panel = e.Form.Controls("Panel1")
Dim Name As String = "窗口3"
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.BaseControl.Controls.Clear
PB.BaseControl.Controls.add(Forms(Name).BaseForm)
Dim PB2 As WinForm.Panel = e.Form.Controls("Panel2")
Dim Name2 As String = "窗口3"
Forms(Name2).OPEN(-1000,-1500)
Forms(Name2).BaseForm.TopLevel = False
Forms(Name2).BaseForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Forms(Name2).BaseForm.Dock = System.Windows.Forms.DockStyle.Fill
PB2.BaseControl.Controls.Clear
PB2.BaseControl.Controls.add(Forms(Name2).BaseForm)