title: Binding an enum to a WinForms combo box, and then setting it
body: <p>a lot of people have answered the question of how to bind an enum to a combo box in WinForms. Its like this:</p>
  
  <pre><code>comboBox1.DataSource = Enum.GetValues(typeof(MyEnum));
  </code></pre>
  
  <p>But that is pretty useless without being able to set the actual value to display.</p>
  
  <p>I have tried:</p>
  
  <pre><code>comboBox1.SelectedItem = MyEnum.Something; // Does not work. SelectedItem remains null
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>comboBox1.SelectedIndex = Convert.ToInt32(MyEnum.Something); // ArgumentOutOfRangeException, SelectedIndex remains -1
  </code></pre>
  
  <p>Does anyone have any ideas how to do this?</p>