title: Putting a process list into a combo box in C#
body: <p>All I want, is that when I click on the comboBox1 box, that it will display all of the processes currently running.</p>
  
  <pre><code>private void comboBox1_MouseClick(object sender, MouseEventArgs e)
  {
       comboBox1.Items.Clear();
       Process[] MyProcess = Process.GetProcesses();
       for (int i = 0; i &lt; MyProcess.Length; i++)
              comboBox1.Items.Add(MyProcess[i].ProcessName + "-" + MyProcess[i].Id);
  }
  </code></pre>
  
  <p>Why does it refuse to work? :s</p>