And where do you have CLEAR EVENTS? It should be in the forms Destroy event.
>My main program
>
>Do FORM YourMainForm
>READ EVENTS
>
>In config.fpw
>SCREEN = OFF
>
>Properties for MainForm
>
>.WINDOWTYPE = 0 && MODELESS
>.SHOWWINDOW = 2 && AS TOP LEVEL FORM
>.VISIBLE = .T.
>.ENABLED = .T.
>
>(Thanks to Elmer Adkins)
>Ok now I have all of that. And it solves the problem of it sitting in the foxpro enviroment - now the form sits there happy (for about 5 seconds) then closes with out me doing anything.