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

Multiple Instance of same app - warning

Status
Not open for further replies.

SteveShanks

Programmer
Nov 28, 2001
112
GB
Hi all

Is there away I can warn the user if they are opening up a new instance of my application while another is running on the same pc?

Many Thanks
Steve
 
Hi

I am using vb.net 2003 with framework 1.1

Thanks
Steve
 
I am using VS 2003 on .NET V1.1 still and I use something like the following :-

'Get number of processes of the program
If Process.GetProcessesByName Process.GetCurrentProcess.ProcessName).Length > 1 Then
messagebox.show "another Instanace is running"
End If

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top