Come utilizzare l'evento KeyPress in textBox con carattere Tab?
Domanda
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Tab)
{
keybox4.Focus();
}
}
Non funziona ma inserisci il carattere Funzionando?
Soluzione
Dovrai avere la proprietà MultiLine
impostata su true
e AcceptsTab
impostato anche su true
.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow