CloseAllform();
Form1 tar = new Form1();
tar.TopLevel = false;
tar.Parent = this.panel2;
tar.Show();
tar.Dock = DockStyle.Fill;
label1.Text = e.Command.Text;


حالا برای بستن فرم فرزند

private void CloseAllform()
{
if (this.panel2.Controls.Count > 0)
foreach (Form aForm in this.panel2.Controls)
aForm.Close();
}