stef33260
Messages postés12Date d'inscriptionsamedi 1 novembre 2003StatutMembreDernière intervention16 mars 2005
-
28 janv. 2004 à 11:16
Renfield
Messages postés17287Date d'inscriptionmercredi 2 janvier 2002StatutModérateurDernière intervention27 septembre 2021
-
28 janv. 2004 à 12:59
BONJOUR UN PETIT PB J AIMERAIS REMPLIR UN FORMULAIR
AVEC DES TEXTBOX MAIS POUR PASSE DUN TEXTBOX A UN AUTRE IL FAUT LE FAIRE AVEC LA SOURIE VMAIS J AIMERAIS POUVOIR LE FAIRE PAR LE CLAVIER PAR LA TOUCHE ENTRE
S POSSIBLE ET COMMENT FAIR MERCI
plaineR
Messages postés237Date d'inscriptionmercredi 26 novembre 2003StatutMembreDernière intervention 6 décembre 20054 28 janv. 2004 à 12:51
1. en utilisant la touche tab tu peux directement aller au controle suivant
2. si veux utiliser la touche entree le plus simple est de creer un groupe de controles (à condition que tous tes objets soient les mêmes) pour lequel tu fais :
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii = 13 Then
If Index < Text1.UBound Then
Text1(Index + 1).SetFocus
Else
Text1(Text1.LBound).SetFocus
End If
End If
End Sub
3. Sinon pour chacun de te des controles tu peux faire pour l'evenement keypress :
if keyascii = 13 then
sendkeys "{tab}"
end if