• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 125
  • Last Modified:

Only One Instance of App... how?

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
Haho2
Asked:
Haho2
1 Solution
 
idcanadaCommented:

if app.previnstance then unload me

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now