omesh
Messages postés11Date d'inscriptionsamedi 10 mai 2008StatutMembreDernière intervention13 juin 2009
-
2 déc. 2008 à 00:12
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 2018
-
3 déc. 2008 à 01:10
Bonjour, je suis débuttant en programation et je cherche une information. Voila je voudrait savoir comment faire faire au programe une action en lien avec une saisie de texte du clavier. merci de vos réponce
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 2 déc. 2008 à 20:23
salut,
en effet c'est limite comme explication...
en attendant :
Option Explicit
Private Sub
Form_Load()
Me.KeyPreview = True
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 97 Then 'a
MsgBox "action 1"
ElseIf KeyAscii = 98 Then 'b
MsgBox "action 2"
End If
End Sub