실행중인 프로세스 가져오기

VNote 2022.04.28 15:08:01 *:

Imports System.Diagnostics

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim plist() As Process = Process.GetProcesses()

        For Each prs As Process In plist

            ListBox1.Items.Add(prs.ProcessName + "         (" + prs.PrivateMemorySize64.ToString() + ")")

            'ListBox1.Items.Add(prs.MainWindowTitle + "  /     (" + prs.PrivateMemorySize64.ToString() + ")")

        Next

    End Sub

End Class