If I remember correctly, I've been able to accomplish this by using 1 - In Top-Level Form.
>>>Hi !
>>>When a form has showwindow property set to 2 (as toplevelform) VFP ignores
>>>modal property of the form ( user can activate both windows ).
>>>I want to run a form as a top level form but I want that the form show behavior of in-screen modal form. A user should close the form before he will be enabled to return to main window. How do this ? Thanks in advance.
>>
>>You can't do this with a top-level form. By the "main window" are you referring to the Windows desktop? If so, that would mean that if your app hangs, it would hang Windows, which isn't a good thing to do.
>
>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.