private static void DisableAllForms() { foreach (Form form in Application.OpenForms) { form.SetEnabled(false); } }