>Is there anything in your form's Init()?
>
>Kev
>
>>Hello,
>>My form runs fine when it is in the VFP system.
>>But when it is compiled into an exe file
>>and run in Windows, it flashes and disappeares.
>>Anybody knows why? Thanks for any help.
>>
>>
>>Below is my "main.prg" to call the form. The form's windowstate = modal
>>*---------------------
>>PROCEDURE Main
>>CLOSE ALL
>>CLEAR ALL
>>_screen.visible = .F.
>>DO FORM R_Form NAME main LINKED
>>READ EVENTS
>>CLOSE DATABASES
>>CANCEL
>>SET NOTIFY ON
>>RETURN
>>*---------------------------
Your form is not modal and you do not have read events at the end of your main PRG.
Add the following lines to your main.prg:
ON SHUTDOWN CLEAR EVENTS
READ EVENTS
ON SHUTDOWN
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!