Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form.keypress event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00472195
Message ID:
00472204
Vues:
24
In your form's keypress, when you fire the Save method, put NoDefault also to prevent keypress being passed to the control.

>Hi,
> I would liek to provide shortcut key in my data entry form, such as CRTL + S to save record and so on. I place my THISFORM.SAVE() in form.keypress event if crtl-s key is detected. I have set form.keypreview to .t. too. It work fine. The SAVE() method fired. However, I got a problem that, a funny characters associated to CTRL-S will be diplayed as square box in my text box. How to prevent it?
>
>Thank you
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform