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

Only one application should run

Status
Not open for further replies.

MAK9974

IS-IT--Management
Apr 11, 2002
145
US
Hi guys.

I created an application in VB and created executable.

If i run one time its showing the form.
if i am running another time its showing
copy of another form.

What i need to do is, no matter how many times the exe is run (without closing the form), i need to run and show only one form and only one application.

can i do that?
-MAK
 
If you are using VB then you should be able to make an call to the API try checking out the API tips.
 
may i know what API i should use to check whether my application is already running ?
-MAK
 
Found it.

If App.PrevInstance = True Then
MsgBox "Already One instance of briefcase is running."
End
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top