Imports System Imports System.Diagnostics Imports System.ComponentModel Class MyProcess Shared Sub Main() Dim localByName As Process() = Process.GetProcessesByName("notepad") End Sub End Class