private void buttonLogin_Click(object sender, EventArgs e) { string username = "******"; string inputUser = textBoxUsername.Text; string password = "******"; string inputPass = textBoxPassword.Text; if (username == inputUser && password == inputPass) { Form f = this.FindForm(); f.Controls.Remove(this); LogoutScreen ls = new LogoutScreen(); f.Controls.Add(ls); } else { labelIncorrect.Text = "Either your username or password is incorrect. Please try again."; } }