Steve -
It's not a small project so going through it by trial and error could take a week or two. I was hoping someone had run into the same problem and had a quick fix. The beforeshutdown idea is a good one. I'll give it a try. In the mean time I've temporarily abandoned the idea of limiting the VFP Window in the executable for the sake of time and I'm moving ahead. Not having the VFP window in the background would make the application much classier. I'll continue working on the problem when I'm not under a deadline. Thanks Steve!
>Again, I think you have some interferring code somewhere.
>
>Just for example, I opened the sample project, I opened the orders form. and changed the showwindow property to 2, top level. Compiled it, opened the orders form and closed it. THe application remained.
>
>Normally, when I have a problem like that, I will copy forms and code to the sample app, one piece at a time until the problem occurs there. It's a bit of trial & error troubleshooting but sometimes it's the only way.
>
>The only other thing I could think of is a workaround. You could add code to your appapplication.beforeshutdown When your top level form closes, record a flag, then in the beforeshutdown code: if the flag exists, reset the flag and return .f. . If beforeshutdown returns .f. the app should not close.
>
>good luck
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement