>>Hi Ed,
>>
>>How can you be everywhere at the same time? ;-)
>>Always there to help... appreciated.
>>
>>Your comments forced me to review all the parameters and indeed the property of the form had to be Window Type = 1 (Modal)
>>
>>It now works fine in both .APP and .EXE
>>
>>But I have this VFP window behind when running the .EXE. How can I get rid of that?
>>
>
>In order to remain Modal, the Form needs to run in the context of the VFP screen; to fix this, make your form's ShowWindow property = 2, and then use SCREEN=OFF in the CONFIG.FPW to toally hide the VFP main screen (the APP or EXE running in development mode can't do this, but you can add
_SCREEN.Visible = .F.
to the Init of your form. Top-Level forms are inherently modeless (IOW they cannot be modal); your startup .PRG should do something along the lines of:
>
>ON SHUTDOWN CLEAR READS
error - this should read:
ON SHUTDOWN CLEAR EVENTS
>DO FORM MyTopLevelForm
>READ EVENTS
>ON SHUTDOWN
>CLOSE ALL
>CLEAR ALL
>QUIT
>
>and you can then have the Quit menu/command button of the Top-Level form issue:
>
>CLEAR EVENTS
>thisform.Release()