Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you check a instance of a executable program is running already 2

Status
Not open for further replies.

celly

Programmer
May 2, 2001
4
When you compile a VB program into a exe file, you can double click on the exe and run it. Is there any code in an event/function to check if an instance of the program is already running to prevent the user from double clicking on the exectable again and running another version of the same program. Any code or ideas would be appreciated.

Thanks
 
Sure,
On startup check App.PrevInstance = True
that means your app is allready running.
You can then exit.

-Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top