老师, 将新增窗口加入窗口不成功,剪切怎么做?
Dim frm As New Windows.Forms.Form
frm.controlbox=False
frm.WindowState = System.Windows.Forms.FormWindowState.Maximized
frm.Dock=5
Dim btn As WinForm.Button=e.Form.CreateControl("btn1",ControlTypeEnum.Button)
btn.text="1111"
frm.controls.add(btn.basecontrol)
frm.Show
frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
e.Form.Controls("plall").BaseControl.Controls.Clear
e.Form.Controls("plall").BaseControl.Controls.add(frm)
.NET Framework 版本:2.0.50727.5420
Foxtable 版本:2017.12.31.1
错误所在事件:窗口,窗口1,AfterLoad
详细错误信息:
无法将顶级控件添加到控件。
[此贴子已经被作者于2018/2/10 9:52:40编辑过]