Thursday, 13 June 2013

Check if process is running

I had a need to check if a process was running so a quick Google gave me this which worked a treat
Thanks to  http://social.msdn.microsoft.com

Dim p() As Process

Private Sub CheckIfRunning()
    p = Process.GetProcessesByName("processName")
    If p.Count > 0 Then
     ' Process is running
    Else
        ' Process is not running
    End If
End Sub

No comments:

Post a Comment

Chrome 138 the last supported

Chrome 138 the last supported  Hey Everyone, Chrome 138 is the last version of Chrome that will support Android 8.0 (Oreo) and Android 9.0 (...