dodo1309
Messages postés218Date d'inscriptionmercredi 17 mai 2006StatutMembreDernière intervention30 mai 2011
-
3 janv. 2007 à 19:07
dodo1309
Messages postés218Date d'inscriptionmercredi 17 mai 2006StatutMembreDernière intervention30 mai 2011
-
3 janv. 2007 à 19:58
bonsoir
voila j'ai 5 textbox( --> groupe de controle ) et je voudrai que quand j'ai supprimer tout le contenu ( a l'aide du backspace (caract ascii 8) )d'une que le focus aille se mettre dans a la fin de la textbox précédente .
J'ai déja essayer ceci mais le focus fait n'inporte quoi
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
Pourquoi faire un boucle vu que tu as l'index de la textbox
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
Select Case KeyAscii
Case 8
If Text1(Index).Text = vbNullString Then
If Index > Text1.LBound Then Text1(Index - 1).SetFocus
End If
End Select
End Sub,