Hi
I have a question regarding Setup & Deployment. Once we complete setup and development and install that setup file another system. if we click on icon it open application. if I click on one more time it will open another application. I need to restrict if we click on multiple times it should not open application multiple times.
Can you please suggest me how do I resolve this issue?

Sam HobbsPosted Apr 19, 2010, 2:49 PM
Do you need to also activate the first instance, or is it adequate to just exit any addtional instances after the first one?
Hirendra SisodiyaPosted Apr 19, 2010, 1:26 AM
Me.Visible = False
Dim obj() As System.Diagnostics.Process
obj = Process.GetProcessesByName(Application.ProductName())
If obj.Length > 1 Then
MessageBox.Show("Application is already open")
Application.Exit()
Else
Me.Visible = True
End If
thanks
Please mark as answere if it helps