Bug de la touche VbkeyF10

Résolu
titotitotito Messages postés 2 Date d'inscription dimanche 2 avril 2006 Statut Membre Dernière intervention 9 mai 2006 - 8 mai 2006 à 15:19
titotitotito Messages postés 2 Date d'inscription dimanche 2 avril 2006 Statut Membre Dernière intervention 9 mai 2006 - 9 mai 2006 à 15:56
La touche F10 fonctionne mal avec la fonction VBkeyF10

exemple :
Option Explicit
Public x As Single
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)


x = KeyCode
TexteBox.Text = Str$(x) If x vbKeyEscape Then TexteBox.Text "esc presse" If x vbKeyF8 Then TexteBox.Text "F8 presse" If x vbKeyF9 Then TexteBox.Text "F9 presse" If x vbKeyF10 Then TexteBox.Text "F10 presse" If x vbKeyF11 Then TexteBox.Text "F11 presse"
End Sub

on est oblige de presser la touche F10 deux fois pour debloquer !!!!!
quelle est la solution ? Pleeeeeeease.

2 réponses

asecher Messages postés 262 Date d'inscription lundi 20 octobre 2003 Statut Membre Dernière intervention 27 avril 2007 1
8 mai 2006 à 15:37
Bonjour,

Chez moi, ça marche très bien...

Déjà, au niveau écriture, passe plutôt par un select case keycode, c'est plus clair...

Cordialement,

Alain 31
3
titotitotito Messages postés 2 Date d'inscription dimanche 2 avril 2006 Statut Membre Dernière intervention 9 mai 2006
9 mai 2006 à 15:56
A Alain 31, Je te remercie d'avoir repondu a ma requete

Helas, ce probleme de cette fonction VBkeyF10 persiste, y compris des essais sur 2 autres ordinateurs.
Je ne comprends pas...

Merci encore de ton attention.
0
Rejoignez-nous