private void Form1_Load(object sender, EventArgs e) { Login l = new Login(); AdminHome h = new AdminHome(); h.Show(); EmployeeHome o = new EmployeeHome(); o.Show(); l.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "admin" && textBox2.Text == "123") { AdminHome h = new AdminHome(); h.Show(); this.Hide(); } if (textBox1.Text == "employee" && textBox2.Text == "123") { EmployeeHome o = new EmployeeHome(); o.Show(); this.Hide(); } }