private void conexionToolStripMenuItem_Click(object sender, EventArgs e) { FrmConexion n = new FrmConexion(); n.MdiParent = this; n.Show(); }
private void FrmLoginPrincipal_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F11) { FrmConexion frm = new FrmConexion(); frm.ShowDialog(); } else if (e.KeyCode == Keys.F1) { FrmSeleccionEmpresa frm = new FrmSeleccionEmpresa(); frm.ShowDialog(); } else if (e.KeyCode == Keys.Escape) { Application.Exit(); } }