private void TempQuestionButton_Click(object sender, EventArgs e) { this.Hide(); QuestionForm form = new QuestionForm(); form.FormClosed += (s, args) => this.Close(); form.Show(); }
private void button2_Click(object sender, EventArgs e) { //QuizFile open = new QuizFile(); //QuizObject obj = open.OpenFile(); //TakeQuiz take = new TakeQuiz(obj); QuestionForm form = new QuestionForm(); form.FormClosed += (s, args) => this.Show(); form.Show(); this.Hide(); }