I am creating an application where when a button is pressed, it will a list of currently running processes, with their icons right beside them.
private void materialFlatButton6_Click_1(object sender, EventArgs e)
{
Process[] process = Process.GetProcesses();
foreach (Process prs in process)
{
listBox1.Items.Add(prs.ProcessName + " (" + prs.PrivateMemorySize64.ToString() + ")");
}
}
This is the current code present and it does this.
But I want it to show up like this.
How would I present the icons with the ListBox?