Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to disable the Enter Key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00692384
Message ID:
00692549
Vues:
19
You can disable these keys by setting your form's KeyPreview property to .T., and in the form's keypress:
if inlist(nKeyCode,13,5,24)  && Enter,Up arrow,Down arrow
   nodefault
endif
I would caution you regarding this however, for these reasons:

If you have a command button on the form with a Default property of .T., then Enter is the same as clicking that button. You would disable this ability in the Keypress.

If you have an editbox on a form, then how is the user supposed to enter hard carriage returns? How can they navigate to a place in the middle of a paragraph using the keyboard?

>As we know the user can navigate thro the controls with TAB, arrow keys and Enter. Is there any way to disable this capability for the enter key and the Up And Down arrow keys ???
>Thank You
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform