private void paginaInicialToolStripMenuItem_Click(object sender, EventArgs e) { Panel p = this.Parent as Panel; var cadP = new ucMain(); panelPrincipal.Controls.Clear(); panelPrincipal.Controls.Add(cadP); }
public frmMain() { InitializeComponent(); Panel p = this.Parent as Panel; var cadP = new ucMain(); panelPrincipal.Controls.Clear(); panelPrincipal.Controls.Add(cadP); }