很急的一个问题,关于显示 MDI 子窗体
在 MDI 的主窗体中,调用以下代码显示子窗体
FrmSZBOB frmSZBOB = new FrmSZBOB();
frmSZBOB.MdiParent = this;
frmSZBOB.WindowState = FormWindowState.Maximized;
frmSZBOB.Show();
报告如下错误:
Controls created on one thread cannot be parented to a control on a different thread.
parameter name:value
不知道该如何解决。
请帮忙