>>Hi,
>>Do you meant you see your form and the VFP main window too?
>>Or, the program just flash and dissapear? If so, you need to place READ EVENT after DO FORM mymainform
>>
>>HTH
>
>Thanks for the help, but I'm still missing something.
>
>mymainform.ShowWindow is set to 2 in the form designer. The form is run from a main program like this :
>
>
>DO FORM mymainform
>mymainform.Show
>Read Events
>
>
>The main foxpro window flashes & the mainform never appears. (I've got a button to close the form with a clear events in it). The form is in limbo at that point - it doesn't appear on the program task list (Ctrl-Alt-Del), but databases are open.
There's a gotcha - if your form is modal, it can't be top level. Fox reverts your .showwindow to zero if the form is modal. Try to make it non-modal.