示例#1
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     if (cboStudentCareer.Text == "")
     {
         MessageBox.Show("Please select the choice of career", "Application Failed!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         FrmAboutCareer frmAboutCareer = new FrmAboutCareer(cboStudentCareer.Text);
         frmAboutCareer.Show();
         this.Hide();
     }
 }
        private void button1_Click(object sender, EventArgs e)
        {
            FrmAboutCareer frmAboutCareer = new FrmAboutCareer(student);

            frmAboutCareer.Show();
        }