Exemplo n.º 1
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            panel.Controls.Clear();
            Cadastro_turma myForm = new Cadastro_turma();

            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.TopLevel        = false;
            myForm.AutoScroll      = true;
            panel.Controls.Add(myForm);
            myForm.Show();
        }
Exemplo n.º 2
0
 private void pictureBox2_MouseClick(object sender, MouseEventArgs e)
 {
     {
         panel.Controls.Clear();
         Cadastro_turma myForm = new Cadastro_turma();
         myForm.FormBorderStyle = FormBorderStyle.None;
         myForm.TopLevel        = false;
         myForm.AutoScroll      = true;
         panel.Controls.Add(myForm);
         myForm.Show();
     }
 }