private void btnLogIn_Click(object sender, EventArgs e) { if (txtUserID.Text == "admin" && txtPwd.Text == "admin123") { Chamber chamber = new Chamber(); chamber.Show(); this.Hide(); } else MessageBox.Show("Invalid UserId and Password"); }
private void btnLogIn_Click(object sender, EventArgs e) { if (txtUserID.Text == "admin" && txtPwd.Text == "admin123") { Chamber chamber = new Chamber(); chamber.Show(); this.Hide(); } else { MessageBox.Show("Invalid UserId and Password"); } }