private void mlnkNuevo_Click(object sender, EventArgs e) { try { frmCierreCajaMant vFrmCierreCajaMant = new frmCierreCajaMant(); vFrmCierreCajaMant.Show(); Close(); } catch (Exception ex) { throw ex; } }
private void mgvCajas_KeyDown(object sender, KeyEventArgs e) { try { switch (e.KeyCode) { case Keys.Enter: frmCierreCajaMant vFrmCierreCajaMant = new frmCierreCajaMant(); vFrmCierreCajaMant.Show(); Close(); break; } } catch (Exception ex) { throw ex; } }