private void button3_Click(object sender, EventArgs e) { this.Hide(); adminhome ah = new adminhome(); ah.Show(); }
private void button6_Click(object sender, EventArgs e) { if (textBox3.Text == "admin" && textBox4.Text == "admin") { //username = textBox1.Text; this.Hide(); adminhome ah = new adminhome(); ah.Show(); //main m = new main(username); //m.Show(); } else { MessageBox.Show("invalid user"); } }