Solved

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

Posted on 2004-08-12
2
122 Views
Last Modified: 2010-05-02
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?
0
Comment
Question by:really24
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 11786536
Try this

http://www.thescarms.com/vbasic/AppResponse.asp


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


Just guessing
0
 
LVL 4

Expert Comment

by:kurian2z5
ID: 11790430
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
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question