public static void ShowForm(Form form) { if (form.InvokeRequired) { form.Invoke(new showForm(ShowForm), form); } else { form.Show(); } }