private void button1_Click(object sender, EventArgs e) { options newform = new options(); this.Hide(); newform.Show(); }
private void button1_Click(object sender, EventArgs e) { if (txtusername.Text == "rashna") { if (txtpassword.Text == "password") { MessageBox.Show("Login Successful !"); options newform = new options(); this.Hide(); newform.Show(); } else { MessageBox.Show("Error ! Invalid username or password !"); } } else { MessageBox.Show("Error ! Invalid username or password !"); } }