cs_alasomed
Messages postés2Date d'inscriptiondimanche 28 août 2005StatutMembreDernière intervention 3 septembre 2005
-
2 sept. 2005 à 23:53
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 2018
-
3 sept. 2005 à 01:09
Salut,
Je suis débutant en visual basic, et je cherche une implimentation, ou une fonction me permettant de naviguer entre les textboxes d'une feuille en cliquant sur la touche ENTRER, merçi.
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 3 sept. 2005 à 00:12
salut
test avec 4 textbox par défaut, VB6 :
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode vbKeyReturn Then KeyCode 0: SendKeys ("{TAB}")
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode vbKeyReturn Then KeyCode 0: SendKeys ("{TAB}")
End Sub
Private Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode vbKeyReturn Then KeyCode 0: SendKeys ("{TAB}")
End Sub
Private Sub Text4_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode vbKeyReturn Then KeyCode 0: SendKeys ("{TAB}")
End Sub
cs_alasomed
Messages postés2Date d'inscriptiondimanche 28 août 2005StatutMembreDernière intervention 3 septembre 2005 3 sept. 2005 à 01:01
Salut,
je te remercie de ta réponse, cela fonctionne à merveille, malgré qu'il est un peu genant d'ecrire ce code à l'evénement KEYDOWN de chaque textboxe en supposant que la feuille en posséde beaucoup.
Salut.