private void pictureBox7_Click(object sender, EventArgs e) { NotasCadastradas soff_cad = new NotasCadastradas(perfil); soff_cad.TopLevel = false; soff_cad.AutoScroll = true; this.panel2.Controls.Add(soff_cad); soff_cad.Dock = DockStyle.Top; soff_cad.Show(); }
private void alterarToolStripMenuItem1_Click(object sender, EventArgs e) { //NotasCadastradas tela_nota = new NotasCadastradas(); //tela_nota.ShowDialog(); NotasCadastradas soff_cad = new NotasCadastradas(perfil); soff_cad.TopLevel = false; soff_cad.AutoScroll = true; this.panel2.Controls.Add(soff_cad); soff_cad.Dock = DockStyle.Top; soff_cad.Show(); }