Change your ShowWindow property of a form to 2-As TopLevel Form.
Aashish
>In my main application program I have some code which switches off the Foxpro Window:
>
>_screen.visible=.f.
>
>In addition to this I would like to start up a form automatically when double clicking the executable. I have put the following code in my program:
>
>do form margin
>read events
>
>When I build the executable and run it the screen just flashes as if it has ran the application and then closed it. Can anybody help me please?
>
>Many thanks