>Cetin,
>
>I don't think there is any other window in between. It runs perfect if i run the child form only.
>Another observation - If 'Always on Top' property is set to .F. for the main form, this window becomes the active window, but it is working only if I run the main form from command window. If I creat an EXE, it disappears again.
>
>Thanks and regards,
>Yashodhan
Yashodhan,
That's why I say a form/window in between. Alone it would show as normal for whatever the toplevel form is (ie: _screen when run from command window). A code like this could send it back :
do form anothertoplevel
do form myModal && Now is at back for it launches in another window
With or w/o AlwaysOnTop=.t. modal form shows in top level, either from command window or exe (modal called from toplevel). Honestly I don't know how to reproduce the problem you described w/o an intermediate form/window.
Cetin