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..!!
Haho2Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
idcanadaConnect With a Mentor Commented:

if app.previnstance then unload me

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.