private void frmIngreso_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.N && e.Control) { nuevo(); } else if (e.KeyCode == Keys.G && e.Control) { Grabar(); } else if (e.KeyCode == Keys.C && e.Control) { } else if (e.KeyCode == Keys.P && e.Control) { } else if (e.KeyCode == Keys.B && e.Control) { FrmIngreso_qry frmoc = new FrmIngreso_qry(); frmoc.pasard += new FrmIngreso_qry.pasar(EjecutarIngreso); frmoc.ShowDialog(); } else if (e.KeyCode == Keys.E && e.Control) { } else if (e.KeyCode == Keys.Escape) { //this.Close(); } else if (e.KeyCode == Keys.I && e.Control) { frmProductoPopup frmps = new frmProductoPopup(); frmps.FormParent = this; frmps.EstadoDet = 1; frmps.ShowDialog(); } }
private void btnBuscar_Click(object sender, EventArgs e) { FrmIngreso_qry frmoc = new FrmIngreso_qry(); frmoc.pasard += new FrmIngreso_qry.pasar(EjecutarIngreso); frmoc.ShowDialog(); validacionBuscar(); //btnGrabar.Enabled = false; }