Bip sur textbox

BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 - 6 déc. 2003 à 09:25
BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 - 6 déc. 2003 à 09:46
'lut a toi

sur mes textbox, j'ai un truc du style:

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
    Text2.SetFocus
End If
End Sub


et a chaque fois j'ai un sale bip qui commence a me faire peter les tympans (dsl l'orthographe). Comment on peut le desactiver ?

@++

:clown) BasicInstinct :clown)

1 réponse

BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 12
6 déc. 2003 à 09:46
Ben en fait, je me reponds :)

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0  'ICI on annule la frappe
Text2.SetFocus
End If
End Sub



:clown) BasicInstinct :clown)
0
Rejoignez-nous