title: Cannot select index value for ComboBox
body: <p>When I try to load some data and set the index of ComboBox accordingly it gives me an error that "0" is not a valid number of SelectedIndex</p>
  
  <p>The combobox definitely has more than 0 items in it.  Those are added properly.  The number that the index is supposed to be set to is read in properly as well, but the index will not be set.  It doesn't matter if I hard-code a number of set it from the file.</p>
  
  <p>A code snippet:</p>
  
  <h2>CB is the combobox control.</h2>
  
  <pre><code>((System.Windows.Forms.ComboBox)ctrlToSet).Text = n["Text"].InnerText;
  string s = n["SelectedIndex"].InnerText;
  int nd = 0;
  int.TryParse(s, out nd);
  CB.SelectedIndex = nd;
  </code></pre>