A
Academia
I build the solution.
In the bin folder I run the .exe
Twice
It runs each time.
Why doesn't the below code abort the second run?
Thanks
Shared Function Main(ByVal cmdArgs() As String) As Integer
Dim mutexWasCreated As Boolean
Using mutx As New Mutex(True, "TestJunk", mutexWasCreated)
If Not mutexWasCreated Then Return 1
End Using
Try
Application.EnableVisualStyles()
Application.Run(New FormStudioMdi)
Catch ex As Exception
In the bin folder I run the .exe
Twice
It runs each time.
Why doesn't the below code abort the second run?
Thanks
Shared Function Main(ByVal cmdArgs() As String) As Integer
Dim mutexWasCreated As Boolean
Using mutx As New Mutex(True, "TestJunk", mutexWasCreated)
If Not mutexWasCreated Then Return 1
End Using
Try
Application.EnableVisualStyles()
Application.Run(New FormStudioMdi)
Catch ex As Exception