I have a sales form in which the user can go through the sales adding items until the sale ends.
I want you to press the key to change the attribute enabled
of an element and pass the focus to it.
This is what I tried:
private void ventapiezas_KeyPress(object sender, KeyPressEventArgs e)
{
if(e.KeyChar == Convert.ToChar(Keys.Enter))
{
txtefectivo.Enabled = true;
txtefectivo.Focus();
}
}
But it does not work, it does not display error. ventapiezas
is the form