Could there not be any conflict if another application had the same name?
vb Code:
Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim instance As Boolean Dim mutex As New Threading.Mutex(False, "Local\ApplicationName", instance) If instance Then Process.Start(Process.GetCurrentProcess.MainModule.FileName) End If End Sub End Class




Reply With Quote