跨线程报错
delegate void SetFormParent(Form f,Form f1); private void SetForm(Form fparent,Form fchild) { if (fchild.InvokeRequired) { SetFormParent d = new SetFormParent(SetForm); this.Invoke(d, new object[] { fparent,fchild }); } else { fchild.MdiParent = fparent; } }