Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>Hi, Naoto:
>
>>Which KeyPress() event? The Form or TextBox? If the one in the Form object, did you set KeyPreview to .T. ?
>
>1) Textbox.KeyPress()
>
>2) Yes. KeyPreview is set to .T.
>
>Anyway you must understand before posting this I put code after IF !A... and. after IF !B and the code worked. So CHRSAW() returns .F. despite there are keystrokes remaining in the buffer.
>
> Héctor
If you're using the TextBox method, then you don't really need (nor want) to set the KeyPreview of the form to .T. -- if I'm not mistaken, you set this so that the form's method would take precedence over the individual controls.
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