Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.ListView1.Items.Clear()
Dim myprecess As Process() = Process.GetProcesses
Dim thisprocess As Process
For Each thisprocess In myprecess
Dim mylistviewitem As New ListViewItem
Try
mylistviewitem.Text = thisprocess.ProcessName
mylistviewitem.SubItems.Add(thisprocess.Modules(0).FileName)
mylistviewitem.SubItems.Add(thisprocess.WorkingSet64)
mylistviewitem.SubItems.Add(thisprocess.PriorityClass)
ListView1.Items.Add(mylistviewitem)
Catch ex As Exception
End Try
Next
End Sub