public void ShowManageUserForm(UserAccount user, LoginForm loginForm) { foreach (Form form in Application.OpenForms) { if (String.Compare(form.Name, "ManageUserForm") == 0) { form.Show(); return; } } manageUserForm = new ManageUserForm(user, loginForm); manageUserForm.Show(); }