This is my code and I would like to know how I can put this in an alphabetical list. Thanks!
Process[] proc;
void GetAllProcess()
{
proc = Process.GetProcesses();
listBox1.Items.Clear();
foreach (Process p in proc)
{
listBox1.Items.Add(p.ProcessName);
}
}
private void Form1_Load(object sender, EventArgs e)
{
GetAllProcess();
}