Solved

Only One Instance of App... how?

Posted on 1998-11-05
1
120 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

820 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