private void btnCurrentStudent_Click(object sender, EventArgs e) { this.Hide(); QuizForm cStudent = new QuizForm(); cStudent.Show(); }
private void btnTakeQuiz_Click(object sender, EventArgs e) { if (comboStudent.Text == "") { MessageBox.Show("Please Select a student!", "", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { this.Hide(); QuizForm newQuiz = new QuizForm(); newQuiz.Show(); //Student name = new Student(comboStudent.Text); } }