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

            this.Visible = false;
            Form.Show();
        }
Exemplo n.º 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
     }
 }