Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable the Enter Key
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00692384
Message ID:
00694812
Views:
22
>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

Thank You all for the reply and sorry for the delayed answer. I made this question because I thought there was a SET command that would make it possible. But it seems there isnt.
I published it in internet application by accident ...


Dimitris
Previous
Reply
Map
View

Click here to load this message in the networking platform