How to Tell an .exe has finished Initializing during Start Up

I run a .exe from my code and I can tell that it is still initializing because there as an hour glass. I mean Win2000 must know that it has not finished or else it wouldn't show the hour glass until done.

What I want to do is to be able to tell when it is done initializing before I go on with my code. The .exe stays open and running during the entire life of my VB app. I just want to wait for it to finish initializing before I start communicating with it.

I have been using a timer loop where I check if the exe is available and if not I keep looping.

But I want to know if there is a more clean and for sure way of telling.

Is there a Win API that I can use?
Who is Participating?
EDDYKTConnect With a Mentor Commented:
Try this

Since VB is single thread, if VB is still initializing, you should not get response.

Just guessing
Form_Initialize event is called as soon as the program is run. but Form_Load is called only after all initializations are complete. just make the app send a message to ur other app in Form_load
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.