Пример #1
0
        private void pictureBox6_Click(object sender, EventArgs e)
        {
            frmRegistrarProveedor objHistoriaClinica = new frmRegistrarProveedor();

            objHistoriaClinica.MdiParent = this.MdiParent;
            this.Hide();
            objHistoriaClinica.Show();
        }
Пример #2
0
        private void proveedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form formulario in this.MdiChildren)
            {
                if (formulario == objRegistrarProveedor)
                {
                    formulario.Show();
                }
                else
                {
                    formulario.Hide();
                }
            }

            objRegistrarProveedor.MdiParent = this;
            objRegistrarProveedor.Show();
        }