private void button4_Click(object sender, EventArgs e) { choice newform = new choice(); this.Hide(); newform.Show(); }
private void button3_Click(object sender, EventArgs e) { if (textBox1.Text == "") { MessageBox.Show("Enter Username !"); } else if (textBox2.Text == "") { MessageBox.Show("Enter Password !"); } else { if (textBox1.Text == "faiyaz") { if (textBox2.Text == "pass") { MessageBox.Show("Login Successful !"); choice newform = new choice(); this.Hide(); newform.Show(); } else { MessageBox.Show("Invalid Password!!"); } } else { MessageBox.Show("Invalid Username!!"); } } }