C# invoke action on the main thread

Date: 2018-03-19
// Invoke a callback on the main thread
System.Windows.Forms.Application.OpenForms[0].Invoke(new Action(() => {
	RunAction();
}));

 

10570cookie-checkC# invoke action on the main thread