>>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.
Len,
To keep it simple I think an app that has only one form (no main.prg) would do for you :
-Create a simple form as top level
-Be sure to add button with
clear events
thisform.release
as click code
(You might want to code that in Form.queryunload as well)
-In form.init code
this.show
read events
Build and run.
Cetin