Solved

Only One Instance of App... how?

Posted on 1998-11-05
1
117 Views
Last Modified: 2010-04-30
Hi,
  I have a VB 4.0 app called "MyApp" and I only want one instance of it running at any time. How do I check for this?
If it is already running, a error mesg should pop up.
I don't know what WinAPI to use ( lack of reference ) and how to use it. Thanks a lot..!!
0
Comment
Question by:Haho2
1 Comment
 
LVL 4

Accepted Solution

by:
idcanada earned 30 total points
ID: 1443440

if app.previnstance then unload me

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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 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…

743 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

14 Experts available now in Live!

Get 1:1 Help Now