Exemplo n.º 1
0
 protected void CrossThreadSetText(Control c, String text)
 {
     if (this.InvokeRequired)
     {
         CrossThreadSetTextDelegate d = new CrossThreadSetTextDelegate(this.CrossThreadSetText);
         this.Invoke(d, new Object[] { c, text });
     }
     else
     {
         c.Text = text;
     }
 }
Exemplo n.º 2
0
 protected void CrossThreadSetText(Control c, String text)
 {
     if (this.InvokeRequired)
     {
         CrossThreadSetTextDelegate d = new CrossThreadSetTextDelegate(this.CrossThreadSetText);
         this.Invoke(d, new Object[] { c, text });
     }
     else
     {
         c.Text = text;
     }
 }