Exemplo n.º 1
0
 /// <summary>
 /// Sets the MDI Parent of the given Form to be same as this forms MDI Parent
 /// </summary>
 /// <param name="f">Form</param>
 protected void CrossThreadSetMdiParent(Form f)
 {
     if (this.InvokeRequired)
     {
         CrossThreadSetMdiParentDelegate d = new CrossThreadSetMdiParentDelegate(this.CrossThreadSetMdiParent);
         this.Invoke(d, new Object[] { f });
     }
     else
     {
         f.MdiParent = this.MdiParent;
     }
 }
Exemplo n.º 2
0
 protected void CrossThreadSetMdiParent(Form f)
 {
     if (this.InvokeRequired)
     {
         CrossThreadSetMdiParentDelegate d = new CrossThreadSetMdiParentDelegate(this.CrossThreadSetMdiParent);
         this.Invoke(d, new Object[] { f });
     }
     else
     {
         f.MdiParent = this.MdiParent;
     }
 }