1.

How to check internet explorer is running

Answer»

Below code helps to to get WHETHER Internet Explorer is RUNNING or not running:-
DIM myProcesses As PROCESS() = Process.GetProcessesByName("iexplore")
Dim myProcess As Process
For Each myProcess In myProcesses
If myProcess.ProcessName.ToString IsNot Nothing Then
MsgBox(myProcess.ProcessName.ToString)
ElseIf myProcess.ProcessName.ToString Is "" Then
MsgBox("closed")
End If
Next myProcess



Discussion

No Comment Found