OVH Cloud OVH Cloud

Confirmation d'un champs

2 réponses
Avatar
phg13
Bonjour,

J'ai un champs texte ou j'aimerais rentrer 4 caracteres et que la
confirmation ou l'evenement click se déclenche une fois le 4 em caractere
saisie

Merci

2 réponses

Avatar
Hans Le Roy
Bonjour,
Comme ceci, non?
Private Sub Text1_Change()
If Len(Text1.Text) >= 4 Then
If MaFonction(Text1.Text) Then
'...
End If
End If
End Sub
A+
Hans
"phg13" wrote in message
news:bjhh4p$jqq$
Bonjour,

J'ai un champs texte ou j'aimerais rentrer 4 caracteres et que la
confirmation ou l'evenement click se déclenche une fois le 4 em


caractere
saisie

Merci




Avatar
Ledev
Hans Le Roy wrote:
Bonjour,
Comme ceci, non?
Private Sub Text1_Change()
If Len(Text1.Text) >= 4 Then
If MaFonction(Text1.Text) Then


'Pour déclenchez l'évènement
cmdMonBouton_Click


End If
End If
End Sub



a+