Option Explicit Dim bPasSortir As Boolean Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = vbKeyTab Then bPasSortir = True ' Ici, Send Chr$(9) vers communication Text1.Text = Text1.Text & "<Touche Tab>" End If End Sub Private Sub Text1_Validate(Cancel As Boolean) If bPasSortir Then bPasSortir = False Cancel = True End If End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question