C# invoke

C#
//this is the form to invoke
this.Invoke((MethodInvoker)(() =>
{
//Stuff to invoke go here
}));
Source

Also in C#: