title: How to list running processes in listbox or a combobox
body: <p>I am trying to populate a listbox with a list of running processes, so my users can select the process they wish to monitor. </p>
  
  <p>I have tried the following, along with lots of variations of it and I just can't get it to work. </p>
  
  <pre><code>foreach(Process p in Process.GetProcesses())
  {
     listBox1.Items.Add(p.ProcessName);
  }
  </code></pre>
  
  <p>It doesn't do anything, however, I have seen others saying it worked for them. 
  Any ideas?</p>