Solved

Under Win 3.1, is 3rd party app running?

Posted on 1998-12-09
3
145 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
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

756 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