private void btn_Back_Click(object sender, EventArgs e) { SelectionTab select = new SelectionTab(); this.Hide(); select.Show(); }
private void Login_Click(object sender, EventArgs e) { string pass, user; user = UsernameBox.Text; pass = PassBox.Text; if (user.ToLower() == "home" && pass.ToLower() == "1234") { SelectionTab select = new SelectionTab(); this.Hide(); select.Show(); } else { ErrorLabel.Text = "Username or Password is Incorrect."; ErrorLabel.Visible = true; } }