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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to verify if my program is already running in memory?

Status
Not open for further replies.

seba18

Programmer
Jul 26, 2004
38
How can I verify if my program is already running in memory, when I start it?
 
The app.prevInstance will tell you if there is another instance of your app running

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Try this:

Private Sub Form_Load()
If App.PrevInstance Then Unload Me
End Sub

Swi
 
swi

No problem - it happens to me too!

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top