Пример #1
0
        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);
        }
Пример #2
0
        public frmMain()
        {
            InitializeComponent();
            Panel p    = this.Parent as Panel;
            var   cadP = new ucMain();

            panelPrincipal.Controls.Clear();
            panelPrincipal.Controls.Add(cadP);
        }