Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KEYPRESS - EVENT (Trapping Alt or Ctrl)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00121615
Message ID:
00122012
Vues:
18
Hi Wayne,

Tried it out and surprisingly.... the KeyPress() event is not fired for the textbox. The only way I could trap it was from the Form's KeyPress() event and the Form's KeyPreview has to be set to False.

Found the same in VFP6 too.

>Drop a text box on a form and place a WAIT WIND 'Not Cool' in the KEYPRESS event. Then press a letter. The WAIT WIND will fire. Press ALT+A,B,C,D,E,...
>The method will not fire.
>
>The KEYPRESS of the form might fire, but the action you want in the text box will not fire.
>
>Wayne
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform