>I have an application that uses the run command to start a VB application. I allow the user to run as many copies of this application they so desire. When they finish using the VFP application I would like foxpro to Destroy any of the VB apps that the user started but forgot to shutdown.
>
>I know how to find the HWnd of the window I am looking for but when I call the DestroyWindow function, nothing happens.
>
>How can I pull this off.
>
>Jeremy Weidig
Try using SendMessage() to send a WM_QUIT.
George
Ubi caritas et amor, deus ibi est