private void txtTransaccion_KeyDown(object sender, KeyEventArgs e) { if (txtTransaccion.ReadOnly == false) { if (e.KeyCode == Keys.F1) { if (Application.OpenForms["frmTransacciones"] != null) { Application.OpenForms["frmTransacciones"].Activate(); } else { frmTransacciones form = new frmTransacciones(); form.Proceso = 3; form.ShowDialog(); tran = form.tran; CodTransaccion = tran.CodTransaccion; txtTransaccion.Text = tran.Sigla; if (CodTransaccion != 0) { CargaTransaccion(); ProcessTabKey(true); } else { BorrarTransaccion(); } } } } }
private void txtTransaccion_KeyDown(object sender, KeyEventArgs e) { if (!txtTransaccion.ReadOnly) { if (e.KeyCode == Keys.F1) { if (Application.OpenForms["frmTransacciones"] != null) { Application.OpenForms["frmTransacciones"].Activate(); } else { frmTransacciones form = new frmTransacciones(); form.Proceso = 4; form.ShowDialog(); if (CodTransaccion != 0) { CargaTransaccion(); ProcessTabKey(true); } } } } }