private void TXTPROD_KeyPress(object sender, KeyPressEventArgs e) { if ((int)e.KeyChar == (int)Keys.Enter) { TXTLOTE.Focus(); } }
private void TXTPROD_KeyPress(object sender, KeyPressEventArgs e) { if ((int)e.KeyChar == (int)Keys.Enter) { if (TXTPROD.Text == "") { MessageBox.Show(this, "INGRESE PRODUCTO", "GESADIV", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { TXTLOTE.Focus(); } } }