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:
00122720
Views:
22
How about this approach:

- Put all your "further user input" controls in a container on the form (so that you can deal with them all as a group).

- Put your validation check in the container's refresh. This code would enable or disabled all the controls in the container based on a valid entry.

- In the lost focus of the key field call the container's refresh method.

- Prevent the focus from moving to the quit button by disabling the tabstop property. (it can still be clicked on or hotkeyed)

So the sequence of events would be that if a valid entry was made, the other controls would be enabled and focus would shift to them. If an invalid entry is made the controls are not enabled, and since the quit button can not get focus, focus remains on the textbox.

This can be conveyed much more effectively with a simple example. I'll send it to you via e-mail.

>>
>Then, new controls(textboxes, etc) will show up for furthur user input.
>I wonder what event this all goes into.
>
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform