Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Panel p    = this.Parent as Panel;
            var   cadP = new ucConsultaCliente();

            panelPrincipal.Controls.Clear();
            panelPrincipal.Controls.Add(cadP);
        }
Пример #2
0
        private void clienteToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Panel p    = this.Parent as Panel;
            var   cadP = new ucConsultaCliente();

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