private void button1_MouseClick(object sender, MouseEventArgs e) { intermediate intermediate = new intermediate(); intermediate.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { string a = textBox1.Text; string b = textBox2.Text; if (a == "admin" && b == "admin22" || a == "ADMIN" && b == "ADMIN22" || a == "" && b == "") { intermediate intermediate = new intermediate(); intermediate.Show(); this.Hide(); } else { MessageBox.Show("Please Enter the Valid User Name & Password"); } }