Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Run script when other VB application is finished

Posted on 2003-02-24
Medium Priority
Last Modified: 2010-05-01
Hi all.  This is one of my first VB experiences and I'm struggling, so any help is very much appreciated.  I doubt this is a very hard question, but the answer is important to me so 200 (and maybe more) points to the solution.

I'm trying to create a new VB Application that uses another VB application inside of it.  What I really want to do is when my new application is started, the application inside is started.  Nothing else should happen to my application until the other program has been closed.  Once the other program is closed, I want my program to continue on with some other code that I will write later.

Is there any VB solution to checking to see if an application is still running?  Is there an On Application End command that I could use to continue my program once the other program finishes?

Thanks in advance for you help,

Question by:longhorn03
LVL 28

Accepted Solution

AzraSound earned 800 total points
ID: 8010320
"Determining the End of a Shelled Application Using WaitForSingleObject"

Expert Comment

ID: 8010494
well make the 2nd exe as an ActiveX executable and when u start the 1st executable start the 2nd executable also.


LVL 26

Expert Comment

ID: 8010551
200 pts?->
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 26

Expert Comment

ID: 8010559
AzraSound, you are so fast for over 150 pts question.

Just kidding

LVL 28

Expert Comment

ID: 8010949
>>AzraSound, you are so fast for over 150 pts question

Actually, I have limited myself to only reply to questions worth 200+ points.   ;-P   (joking, of course)

Author Comment

ID: 8011260
Thanks for your help, worked like a charm.

- J

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month12 days, 8 hours left to enroll

579 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