Get all instances of Notepad running on the local computer
Imports System
Imports System.Diagnostics
Imports System.ComponentModel
Class MyProcess
Shared Sub Main()
Dim localByName As Process() = Process.GetProcessesByName("notepad")
End Sub
End Class