Exemple #1
0
        private void alunoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panel.Controls.Clear();
            Cadastro_Aluno myForm = new Cadastro_Aluno();

            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.TopLevel        = false;
            myForm.AutoScroll      = true;
            panel.Controls.Add(myForm);
            myForm.Show();
        }
Exemple #2
0
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     {
         panel.Controls.Clear();
         Cadastro_Aluno myForm = new Cadastro_Aluno();
         myForm.FormBorderStyle = FormBorderStyle.None;
         myForm.TopLevel        = false;
         myForm.AutoScroll      = true;
         panel.Controls.Add(myForm);
         myForm.Show();
     }
 }