Beispiel #1
0
        private void ex3ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Ex3 exercicio3 = new Ex3();  //criando uma instância do formulário Ex3

            exercicio3.MdiParent = this; //esta linha define que a instância do formulário criado é "filho" do formulário principal
            exercicio3.Show();           //esta linha exibe o formúlário Ex3
        }
Beispiel #2
0
        void Showform3()
        {
            Ex3 form3 = new Ex3();

            form3.updateEvent += new EventHandler(handleUpdateEvent);
            form3.FormClosed  += new FormClosedEventHandler(form3_FormClosed);
            this.Visible       = false;
            form3.Show();
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            Ex3 form1 = new Ex3();

            form1.updateEvent += new EventHandler(handleUpdateEvent);
            form1.Update();
            form1.FormClosed += new FormClosedEventHandler(form1_FormClosed);
            Visible           = false;
        }