private void button1_Click(object sender, EventArgs e) { StudentLogin s = new StudentLogin(); s.Show(); this.Hide(); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { if (comboBox1.Text.Equals("Admin")) { AdminLogin ad = new AdminLogin(); ad.Show(); this.Hide(); } else if (comboBox1.Text.Equals("Teacher")) { TeacherLogin ad = new TeacherLogin(); ad.Show(); this.Hide(); } else if (comboBox1.Text.Equals("Students")) { StudentLogin ad = new StudentLogin(); ad.Show(); this.Hide(); } else if (comboBox1.Text.Equals("Parents")) { ParentsLogin ad = new ParentsLogin(); ad.Show(); this.Hide(); } else if (comboBox1.Text.Equals("Staff")) { StaffLogin ad = new StaffLogin(); ad.Show(); this.Hide(); } }