private void createNewButton_Click(object sender, EventArgs e)
        {
            var Form = new InsertQuestion();

            this.Visible = false;
            Form.Show();
        }
Exemple #2
0
 private void insertQuestionsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (insertQForm == null)//elegxos gia to an einai hdh anoixth h forma
     {
         insertQForm             = new InsertQuestion();
         insertQForm.MdiParent   = this;
         insertQForm.Tag         = "mdi_child";
         insertQForm.FormClosed += new FormClosedEventHandler(insertQForm_FormClosed);
         insertQForm.Show();
     }
     else
     {
         insertQForm.Activate();//an einai anoixth thn kanei focus se periptwsh pou einai sto background
     }
 }
Exemple #3
0
 private void insertQForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     insertQForm = null;
 }