I haven't tried to do quite what you are trying to do. Normally, when you run a form as a top-level form, you do it with the main window hidden (put SCREEN=OFF in your CONFIG.FPW). All other forms within your app then run as "in top-level form", and you never seen the VFP screen.
One thing you may want to try is to set _screen.visible = .F. right before calling the top-level form, and set the top-level form's AlwaysOnTop to .T. Just before releasing the top-level form, set _screen.visible = .T. again.
>Hi Barbara ! Thanks.
>By the "main window" I mean "main window" of my program.
>To be maybe more precise - I have a program with outlooklike interface and I want to run a form outside this outlooklike window (like window with new email are showed in outlook) and contrary to outlook user MUST CLOSE the new form before I will let him to return to "main window" of my program.
>This can be done through running this form as external program (run /n command) and using (in a loop) FinWindow function of window API.
>I am curious if it can be done by using do form command or createobject() function.