Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activating one form from another
Message
From
05/04/1999 07:05:31
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00205057
Message ID:
00205164
Views:
20
>>Well the code you have after the DO FORM is obviously bringing focus back, especially something like a SetFocus() call will. Since the other form is modeless too why not just move the DO FORM to the end? It shouldn't really matter in the overall scheme.
>
>Well it's not really a call from a button, but from a continer object with a text field. The user inputs a value and hits TAB to leave the field. Then the containers' lostfocus method calls a valid method which launches this other form. The lostfocus then continues after the valid and the focus is set to the next field on the form. This is probably why the focus shifts back to the first form. How should I attack this problem?<

I think this calls for a modal form to be called because the outcome of the childform will decide if the value in your field in the parent form is good or not.
Peter
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform