Detecting a message box launched in another application
Posted
by richard-assaf
on Stack Overflow
See other posts from Stack Overflow
or by richard-assaf
Published on 2010-06-02T15:32:23Z
Indexed on
2010/06/02
15:34 UTC
Read the original article
Hit count: 244
I am developing a windows service, in vb .et, that launches a legacy application that performs some work. The service acts as a wrapper around the legacy app allowing users to automate an otherwise manual operation.
Everything is working great, except occasionally the legacy app displays a messagebox. When it does this the process halts until the the message box closes.
As the service will be running on a server there will be no user to close the message box.
The service launches the legacy application in a System.Diagnostics.Process.
My question is, is there way to detect that a message box has been displayed by a process that I have started using System.Diagnostics.Process and is there a way to through code to close the messagebox.
I've tried to be brief so if you need more information please let me know.
Thanks in advance
Richie
© Stack Overflow or respective owner