As with most cases, you can find you answer with API calls. Try the DestroyWindow() api, and I believe there is an end process API. You may have to call a few other APIs to get the handle (hwnd) of a window like FindWindow() or WindowFromPoint(). There is no built in VB function to close another program from code, you have to make api calls.