Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveControl & Setfocus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00285640
Message ID:
00285648
Views:
21
>I have a form with a pageframe and command buttons on it. I am on page 2 of the pageframe and validating the entered data. When the user inputs data and presses tab the data is validated. If invalid then I want the control returned to textbox to be re-entered. I have been messing with setfocus and activecontrol and _curobj to do this but nothing seems to work. The focus goes to my first command button off of the pageframe.

If you're using the TextBox's Valid method, just do a RETURN 0 to stay in the TextBox.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform