title: Get the current index of a ComboBox?
body: <p>Say I had a ComboBox with these values:</p>
  
  <pre><code>Black
  Red
  Blue
  </code></pre>
  
  <p>And I have <code>Red</code> currently selected. If the user then hits backspace and hits enter I am capturing the <code>KeyDown</code> event of the ComboBox.</p>
  
  <p>In this event I want to delete Red from the list of items in the ComboBox.</p>
  
  <p>However, because the text of the ComboBox is blank by the time <code>KeyDown</code> is called, the <code>SelectedIndex</code> is -1.</p>
  
  <p>Currently I have a workaround that looks like this:</p>
  
  <pre><code>private void myComboBox_SelectedIndexChanged(object sender, EventArgs e)
  {
      currentMyComboBoxIndex = myComboBox.FindStringExact(myComboBox.Text);
  }
  </code></pre>
  
  <p>Which works.. but I was just wondering if there is a better way. It seems like this way could break somehow and it seems a bit messy. Is there no way to get the current index of the ComboBox without having to keep track of it with a member variable and updating it when the index changes?</p>
  
  <p>Thank you.</p>