>You must have Read Events statement somewhere (see VFP help) or your startup form must be modal.
========================
Hi Plamen,
Ok. Now the small sample program works just fine in both .APP and .EXE format. And the VFP window in the background does not show (as expected) when I add _SCREEN.Visible = .F. in the main program.
When I run this application, there is a fast flash before I can see the Form. It seems to open and close the background VFP window. But if I put SCREEN=OFF in CONFIG.FPW as Ed told me, no more flashing window before showing the modal form and everything is fine on opening the application.
But there is still a flash on exit. It is not nice.
Is there any way to avoid that?