¿Cómo usar el evento KeyPress en textBox con el carácter de tabulación?

StackOverflow https://stackoverflow.com/questions/1607719

  •  05-07-2019
  •  | 
  •  

Pregunta

   private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (e.KeyChar == (char)Keys.Tab)
        {
            keybox4.Focus();
        }
    }

¿No funciona pero ingresa el carácter? ¿Funciona?

¿Fue útil?

Solución

Deberá tener la propiedad MultiLine establecida en true , y AceptsTab también se establece en true .

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top