private void tsmiSucursales_Click(object sender, EventArgs e) { using (frmSucursales frmsucursales = new frmSucursales()) { frmsucursales.MdiParent = this; frmsucursales.Show(); } }
//**************************************************************************************************** //************** S U C U R S A L E S ***************************************************************** //**************************************************************************************************** // abre formulario de Sucursales private void sucursalesToolStripMenuItem_Click(object sender, EventArgs e) { try { frmSucursales child = new frmSucursales(); this.validaFormsDuplicados(child.GetType()); child.MdiParent = this; child.Show(); } catch (Exception Ex) { MessageBox.Show(Ex.Message, "Activos", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }