Detecting a message box opened in another application

Posted by richie on Stack Overflow See other posts from Stack Overflow or by richie
Published on 2010-06-02T15:32:23Z Indexed on 2010/06/02 18:14 UTC
Read the original article Hit count: 234

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 message box is closed.

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

Related posts about vb.net

Related posts about messagebox