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

Multiple programs open

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I am looking for help in writing code that will not allow my program to be open in more than one instance.

What I mean is if my app is running, and someone tries to open another instance of the program, I can put up a box that says, the program is already running.

Any ideas?

Thanks

fergmj
 
Private Sub Form_Activate()
If App.PrevInstance = True Then
MsgBox "Application already loaded"
Unload Me
End If
End Sub

David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top