// Invoke a callback on the main thread
System.Windows.Forms.Application.OpenForms[0].Invoke(new Action(() => {
RunAction();
}));
105700cookie-checkC# invoke action on the main thread
// Invoke a callback on the main thread
System.Windows.Forms.Application.OpenForms[0].Invoke(new Action(() => {
RunAction();
}));