private void button3_Click(object sender, EventArgs e) { viewadmin od = new viewadmin(); od.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "admin" && textBox2.Text == "password") { viewadmin o1 = new viewadmin(); o1.Show(); this.Hide(); } else { MessageBox.Show("Invalid Login"); } textBox1.Text = ""; textBox2.Text = ""; }