Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I personnaly use the LASTKEY function for such matter because it always give the the VERY LAST KEY pressed...
>>is it usual for KeyPress to be one character behind what has actually been typed on the keyboard? i have a textbox for entering stuff and in the KeyPress event i put in the line ?var. at the first KeyPress the var is an empty string (spac(20)) and charcters only start showing after the second character is typed in.
>>tia - john
>
>If var is the textbox's ControlSource, yes, what you're seeing is normal. The character isn't added to the Value/ControlSource until after the code in KeyPress executes.
>
>Tamar
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement