Why not do this asynchronously by firing the process to start on another
thread and passing the delegate of the method which will open the message
box when the process completes? There are differences in how you do this in
1.x vs 2.0, so make sure to research the right areas. There should be plenty
of examples for asynchronous programming available online and in the help
files.
Jim
"JN" <JN@nospam.com> wrote in message news:43********@news.sentex.net...
Hello,
I am trying to write a program or service that will run in the background
and wait for a particular program to start, when it does I want something
else to occur such as a message box. I am not sure how to do the waiting
game (sleep is no good, neither is a loop).
Any help is appreciated.
JN