I am developing a Windows service in VB.NET that runs an outdated application that does some work. The service acts as a wrapper around an inherited application, allowing users to automate manual control otherwise.
Everything works fine, except that the legacy application displays a message. When this happens, the process stops until the message box is closed.
Since the service will be running on the server, there will be no user to close the message window.
The service starts an obsolete application in System.Diagnostics.Process .
Is there a way to detect that a message box was shown by a process that I started using System.Diagnostics.Process ? And is there a way to close the message box through code?
source share