title: ComboBox SelectedText, why is it not switching to the SelectedText item?
body: <p>Question:</p>
  
  <p>My combobox (Me.cbHomeDrive) doesn't get properly initialized if I use</p>
  
  <pre><code>Me.cbHomeDrive.SelectedText = "E:"
  </code></pre>
  
  <p>On Form_Load:</p>
  
  <pre><code>For i As Integer = AscW("C"c) To AscW("Z"c) Step 1
        Me.cbHomeDrive.Items.Add(New ComboBoxItem(ChrW(i) + ":"))
  Next
  
  Me.cbHomeDrive.SelectedIndex = 26 - 3
  Me.cbHomeDrive.Enabled = False
  </code></pre>
  
  <p>With class ComboBoxItem being:</p>
  
  <pre><code>Public Class ComboBoxItem
      Public Text As String
      Public ID As String
  
      Public Sub New(ByVal strText As String)
          Text = strText
          ID = strText
      End Sub
  
      Public Sub New(ByVal strText As String, ByVal strID As String)
          Text = strText
          ID = strID
      End Sub
  
  
      Public Overrides Function ToString() As String
          Return Text
      End Function
  End Class
  </code></pre>
  
  <p>Now If I do  </p>
  
  <pre><code>Me.cbHomeDrive.SelectedText = "E:"
  </code></pre>
  
  <p>right after</p>
  
  <pre><code>Me.cbHomeDrive.Enabled = False
  </code></pre>
  
  <p>Then nothing happens, and the combobox shows as Z:.</p>
  
  <p>If instead of </p>
  
  <pre><code>Me.cbHomeDrive.SelectedText = "E:"
  </code></pre>
  
  <p>I use</p>
  
  <pre><code>SetComboBoxToTextIndex(Me.cbHomeDrive, "E:")
  </code></pre>
  
  <p>with </p>
  
  <pre><code>' WTF '
  ' http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectedtext.aspx '
  Sub SetComboBoxToTextIndex(ByVal cbThisComboBox As ComboBox, ByVal strItemText As String)
  
      For i As Integer = 0 To cbThisComboBox.Items.Count - 1 Step 1
          If StringComparer.OrdinalIgnoreCase.Equals(cbThisComboBox.Items(i).ToString(), strItemText) Then
              cbThisComboBox.SelectedIndex = i
              Exit For
          End If
      Next
  
  End Sub
  </code></pre>
  
  <p>Then it sets the correct selected item (E:).</p>
  
  <p>Why does it not work with Me.cbHomeDrive.SelectedText = "E:"?</p>