Imports System.Diagnostics
Public Class Process
Private Sub NsButton2_Click(sender As Object, e As EventArgs) Handles NsButton2.Click
For Each OneProcess As Process In Process.GetProcesses
ListBox1.Items.Add(OneProcess.ProcessName)
Next
End Sub
End Class
ListBox1.Items.Clear()
For Each all As Process In Process.GetProcesses
If all.MainWindowTitle = String.Empty = False Then
ListBox1.Items.Add(all.ProcessName & " - Visible") '< delete all this to get just the invisible processes
Else
ListBox1.Items.Add(all.ProcessName & " - Not visible") '< delete all this to get just the visible processes
End If
Next
For Each all As Process In Process.GetProcesses
ListBox1.Items.Add(all.ProcessName)
Next
