Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop backspace key moves from one textbox to anot
Message
From
31/12/1996 11:27:16
 
 
To
31/12/1996 11:05:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00016236
Message ID:
00016237
Views:
27
>I don't understand how to stop this behavior.
>
>In most windows programs, the backspace key will only backspace to the left limit of the text box. However, it seems that when there is more than one textbox in a form, the backspace key will take you to the next textbox after you reach the left limit.
>
>My users are complaining and I haven't figured out how to fix this. Any ideas?
>
>D. Bernardo
In KeyPress event you can check SelStart property and if it equals to 0, you intercept the case and, I think, using setfocus() with nodefault will restore focus to the textbox.
You can also disable BACKSPACE at all using ON KEY LABEL in GotFocus event, but here you would lose this key for editing purposes.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform