Solved

Under Win 3.1, is 3rd party app running?

Posted on 1998-12-09
3
146 Views
Last Modified: 2010-05-03
Using VB3.0 under Windows 3.1, I need to be able to check if a 3rd party application is running and either shut it down or send a message to the user that my app can't continue until the 3rd party app has been shut down.

This must be simple, but I've been banging my head against a wall trying to find the answer.

Thanks,

Rob.
0
Comment
Question by:rround
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:rround
ID: 1449021
Edited text of question
0
 
LVL 4

Accepted Solution

by:
idcanada earned 30 total points
ID: 1449022

I would use the getWindow and FindWindow API call as a boolean.
If true, then promp a message box.

Or once window found, use app.activate window name and sendkeys
(Alt - F4) will close the app.


0
 

Author Comment

by:rround
ID: 1449023
I don't see any documentation in VB3.0 for FindWindow or GetWindow.  Are you sure this is available in this version ov VB?   If so, can you give me an example on how to code it.

Thanks.
0

Featured Post

Industry Leaders: 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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

752 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