Solved

Check if another application has been closed

Posted on 1998-11-02
2
149 Views
Last Modified: 2010-04-30
I use VB4 32bit apps with Windows 95.
From with-in my VB4 application, i need to know when another application (NetScape) has been closed.
Note. I also start NetScape from with-in my application with
Shell.
0
Comment
Question by:bosborn
2 Comments
 

Accepted Solution

by:
cimir earned 50 total points
ID: 1442851
Capture the variable which contains the reference to the shell function (e.g : Retval=shell(....), Retval is the referenced variavle), and use it with the Activate function, ti activate the application window. if the application is still alive then everything is OK. But if the application is not running any more, this operation will make an error. Trap this error and you will now that your application is closed.
0
 

Author Comment

by:bosborn
ID: 1442852
Hi CIMIR
            Good Idea but......
Thank for the answer, I have tried it with a delay, but each time i do AppActivate this interupts the application. The application that i wish to monitor is NetScape so each time an Activate occures it interupts what i'm doing with-in Netscape.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…
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…

860 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