Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16028

VS 2019 Running time of Active Application...

$
0
0
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.

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


Viewing all articles
Browse latest Browse all 16028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>