Solved

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

Posted on 2004-08-12
2
120 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now