Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with textbox and Backspace.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00143213
Message ID:
00143355
Views:
21
>Hello Jim,
>
>>>We are using VisualFoxPro 5.0a. At the moment we have several forms where we use textboxes and buttons. When we fill something in a textbox and then delete it with the Backspace key it deletes the entered text. However if you keep pressing the Backspace key the cursor will move from one textbox to the previous textbox. And if there isn't a textbox anymore it will move/activate a button.
>
>>SET CONFIRM ON
>
>Well we have that command in out main.prg and even in the Init of the form. But still it won't behave like we want to.

Well, then the only answert is to trap the backspace key in the Valid and prevent the textbox from losing focus.

* TextBox.Valid
IF LastKey() = = 15 && Shift-Tab
KEYBOARD "{END}{HOME}"
RETURN 0
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform