petiflamand
Messages postés675Date d'inscriptionsamedi 31 mai 2003StatutMembreDernière intervention26 mai 2013
-
5 août 2006 à 11:36
petiflamand
Messages postés675Date d'inscriptionsamedi 31 mai 2003StatutMembreDernière intervention26 mai 2013
-
5 août 2006 à 11:45
Bonjour je voudrais savoir comment faire avec des textbox
pour avoir des controle sans devoir les retaper completement
je fait le code si dessous mais sa marche pas , merci
Private Sub cuvelier()
If keyAscii = 8 Then Exit Sub
If keyAscii = 46 Then
keyAscii = 44
Exit Sub
End If
If keyAscii < 48 Or keyAscii > 57 Then keyAscii = 0
End Sub
Private Sub Text8_KeyPress(keyAscii As Integer)
cuvelier
End sub
Private Sub Text9_KeyPress(keyAscii As Integer)
cuvelier
End sub
Private Sub Text10_KeyPress(keyAscii As Integer)
cuvelier
End sub
ect......
cs_casy
Messages postés7741Date d'inscriptionmercredi 1 septembre 2004StatutMembreDernière intervention24 septembre 201440 5 août 2006 à 11:40
Essaye ceci peut-etre (si tu oublie les paramètres ça peut pas marcher)
Private Sub cuvelier(keyAscii As Integer)
If keyAscii = 8 Then Exit Sub
If keyAscii = 46 Then
keyAscii = 44
Exit Sub
End If
If keyAscii < 48 Or keyAscii > 57 Then keyAscii = 0
End Sub
Private Sub Text8_KeyPress(keyAscii As Integer)
cuvelier(keyAscii)
End sub
Private Sub Text9_KeyPress(keyAscii As Integer)
cuvelier(keyAscii)
End sub
Private Sub Text10_KeyPress(keyAscii As Integer)
cuvelier(keyAscii)
End sub
Sevyc64 (alias Casy) <hr align ="center" size="2" width="100%" /><stron></stron># LE PARTAGE EST NOTRE FORCE #