Sorin, thanks. It does exacty what I need. Never new it was there.
>You may want to consider ON SHUTDOWN from VFP
>
>HTH
>
>
>>I have created a VFP 9 .EXE program that minimizes to an icon on the system tray. All that (with Sergey's great help) works wonderfully.
>>
>>Is there a way to auto quit the VFP program when the user shuts down Windows? I'm assuming there is some kind of Windows API call that will notify my prgram that it needs to quit.
>>TIA
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn