Hello,
I am wondering if it is possible to get the name of active application and its start time.
I have used following code to get all process but not sure how to get current active process and its start time.
Will be thankful for any responses.
I am wondering if it is possible to get the name of active application and its start time.
I have used following code to get all process but not sure how to get current active process and its start time.
Will be thankful for any responses.
Code:
Dim myProcessList As Process() = Process.GetProcesses
For Each myProcess As Process In myProcessList
If myProcess.MainWindowTitle <> "" Then
Dim myListView As ListViewItem = ListView1.Items.Add(myProcess.MainWindowTitle)
myListView.SubItems.Add("running")
End If
Next