Private Sub Txt1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Txt1.KeyDown, Txt2.KeyDown If e.KeyCode = Keys.Enter Then If sender Is Txt1 Then Txt2.Focus() Else Txt1.Focus() End If e.Handled = True End If End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionIf e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Return) Then TextBox2.Focus() End If
If KeyAscii = 13 Then KeyAscii = 0 TextBox2.SetFocus End If
If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Return) Then TextBox2.Focus() End If
Allo, la terre ?