示例#1
0
 private void studentToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (loginstudent(tbemail.Text, tbpass.Text))
     {
         String isiemail = tbemail.Text;
         this.setemail(isiemail);
         MessageBox.Show("Login Success");
         frm3 = new Homepage();
         frm3.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Sorry your Email and Password Not Found");
     }
     conn.Close();
 }
示例#2
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     frm2 = new Homepage(nis);
     frm2.Show();
     this.Hide();
 }