Link to home
Start Free TrialLog in
Avatar of really24
really24Flag for United States of America

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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