Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.setfocus method
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00122406
Message ID:
00122463
Views:
21
Well, if your using the keypress event to check for this, and the user clicks on the command button instead of pressing enter, the keypress event will not be fired. This would also be the case if they press the Tab key instead. I would put the validation check in the LostFocus event.

>I guess my concept is flawed. I want the process to continue if the info entered into the textbox is correct, otherwise I want the focus to go back to the textbox. Which event should I put my code into? Thanks.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform