Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a Non Modal Form from another form
Message
From
04/05/2006 09:19:19
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01117835
Message ID:
01119121
Views:
12
Hi Gerard,

if the second form is modeless, then there is no wait state when you call it from the first one, so the code in the first form will continue to run until the read events. Can you make the second one modal? Otherwise, what I would do is instantiate both forms but keep the second one hidden until you need it, then show it.


>Both Forms are modeless
>What seems to be happening is that control is passed back to the calling form, as there would be some code after the command that does the calling
>but I want to set focus to the called form
>
>
>Regards,
>
>Gerard
>
>
>
>
>>Or may be the desktop property is set to .T.?
>>
>>
>>
>>Gerard
>>when you call
>>
>>DO FORM MyForm2
>>
>>the focus ougth to be on form2. If it doesn't something else is happening. Just a guess, is form1 modal?
>>Hernan
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform