gallyhc
Messages postés386Date d'inscriptionsamedi 4 octobre 2008StatutMembreDernière intervention19 février 20182 24 janv. 2006 à 11:56
Bonjour,
Tu crées une collection de textbox (le nom pour ce code est text1), apres dans la fonction "Private Sub Text1_KeyPress", tu copies le code ci-dessous et voila a chanque entre il passe au textbox suivant.
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
' CHANGEMENT D'UN TEXTBOX A UN AUTRE.
If KeyAscii = &HD Then
If Index > Text1.Count - &H2 Then
Index = -&H1
End If
Text1(Index + &H1).SetFocus
End If