private void txtidtg_pop_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { Frmco_tipogasto_qry frmp = new Frmco_tipogasto_qry(); frmp.pasard += new Frmco_tipogasto_qry.pasar(ejecutarTGasto); frmp.ShowDialog(); txtidProducto_pop.Focus(); } }
private void btntipogasto_Click(object sender, EventArgs e) { Frmco_tipogasto_qry frmp = new Frmco_tipogasto_qry(); frmp.pasard += new Frmco_tipogasto_qry.pasar(ejecutarTGasto); frmp.ShowDialog(); txtidProducto_pop.Focus(); }