TextBoxt KeyDown Event

0

I'm working with Visual Studio 2015, windows forms, the problem I have is that it does not enter the KeyDow event

 private void txtCondicionPago_KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyCode == Keys.Return)
        {
            Focus();
        }
    }

    public new bool Focus()
    {
        groupPanel3.Select();
        txtProducto.Focus();
        return true;
    }

I do not understand why he does not enter the event.

    
asked by Pedro Ávila 19.08.2016 в 10:28
source

1 answer

1

Solved

private void txtCondicionPago_Leave(object sender, EventArgs e)
{
    txtProducto.Focus();
}
    
answered by 20.08.2016 / 00:13
source