private void button2_Click(object sender, EventArgs e) { Close(); Home a = new Home(); a.Show(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "Admin" && textBox2.Text == "Admin") { Home a=new Home(); a.Show(); this.Hide(); } }