>All suggestions or advice is welcome,
>
>I have a systray app that runs all of the time. When the user restarts their computer I get a "Unable to Close Foxpro" message (paraphrased). Does anyone know how I can make this app close without any messages to the user?
>
>Thanks
>
>Chris
I suppose you get the same message when you press Alt-F4 when the application is active, or click on the "x" in the upper-right corner.
You should look at the ON SHUTDOWN command. This command should invoke whatever shutdown is required, which - I hope - you already have in some method or function.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)