SamKr
11/19/2014 - 3:48 PM

Invoke into main GUI thread

Invoke into main GUI thread

if (this.label1.InvokeRequired)
{
  this.Invoke(new MethodInvoker(() => this.Function(parameter1, parameter2)));
}
  else
{
  // do stuff
}