private void txtIdCliente_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down && DGCliente.Visible == true)
     {
         //si se preciona la tecla hacia abajo se pasa el foco a la grilla
         DGCliente.Focus();
     }
 }
Beispiel #2
0
        private void txtIdCliente_KeyDown(object sender, KeyEventArgs e)
        {
            DataTable midata = new DataTable();

            if (e.KeyCode == Keys.Enter)
            {
                if (IsNumeric(txtIdCliente.Text) == true)
                {
                    Buscar_Cliente(Convert.ToInt32(txtIdCliente.Text));
                }
                else
                {
                    UtilityFrm.mensajeError("Para buscar un cliente en la caja de texto debe ser solo numerico");
                }
            }
            if (e.KeyCode == Keys.Down && DGCliente.Visible == true)
            {
                //si se preciona la tecla hacia abajo se pasa el foco a la grilla
                DGCliente.Focus();
            }
        }