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