Beispiel #1
0
        private void categoriasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.pnlFormulario.Controls.Count > 0)
            {
                this.pnlFormulario.Controls.RemoveAt(0);
            }
            FrmMantenedorCategorias hijo1 = new FrmMantenedorCategorias();

            hijo1.TopLevel        = false;
            hijo1.FormBorderStyle = FormBorderStyle.None;
            hijo1.Dock            = DockStyle.Fill;
            this.pnlFormulario.Controls.Add(hijo1);
            this.pnlFormulario.Tag = hijo1;
            hijo1.Show();
        }
Beispiel #2
0
        private void btnCategorias_Click(object sender, EventArgs e)
        {
            FrmMantenedorCategorias frmCategorias = new FrmMantenedorCategorias();

            frmCategorias.Show();
        }