private void aluguelLivroToolStripMenuItem_Click(object sender, EventArgs e) { panel.Controls.Clear(); Controle_Livro myForm = new Controle_Livro(); myForm.FormBorderStyle = FormBorderStyle.None; myForm.TopLevel = false; myForm.AutoScroll = true; panel.Controls.Add(myForm); myForm.Show(); }
private void pictureBox7_MouseClick(object sender, MouseEventArgs e) { { panel.Controls.Clear(); Controle_Livro myForm = new Controle_Livro(); myForm.FormBorderStyle = FormBorderStyle.None; myForm.TopLevel = false; myForm.AutoScroll = true; panel.Controls.Add(myForm); myForm.Show(); } }