Close error window?

nbrege

Freshman
Joined
Jan 12, 2006
Messages
34
Is there a way to close an error window of another application? I am using proc.start & proc.close to programatically start & close an application, but when my VB app executes the .close method, the other app does close, but it gives an error. It is the common error window where you have the option to send or not send the error report to Microsoft. Is there a way I can close that error window programatically? Thanks...
 
The first thing I can think of off the top of my head, but this would require some research, P/Invoke, and experimentation, is to use the Windows API to find the error window, then get the handle to the "Don't Send" button, and send it a click message to simulate a mouse click, causing it to close. There could be something simpler... I don't know.
 
Back
Top