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