I ran across the following code to check for a previous instance of my app running.
Private Function PrevInstance() As Boolean
If UBound(System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then
Return True
Else
Return False
End If
End Function
Problem is that the GetProcessesByName is not available in
the compact framework.
I have a user that likes to hit the icon with the stylus twice (double-clicking so to speak) and two instances of it
then are running.
I am looking for a way to keep multiple instances from running.
Anyone have any ideas?