title: How do I set a ComboBox default *not in the drop down* when a list item begins with the same text as a drop down item?
body: <p>Using C#, say you have a ComboBox that has a DropDownStyle set to DropDown (there are items in the drop down but the user can manually enter a value as well). How do you set a default value for the ComboBox that is <strong>not</strong> in the list of values in the drop down, but <em>begins with</em> text from a possible selection? Normally setting ComboBox.Text works fine, but if there is an item in the drop down that <em>begins with</em> the text you want as the default, it automatically selects the first item in the list that starts with the text. For example:</p>
  
  <p><strong>Values in the drop down:</strong><br>
  <code>c:\program files\</code><br>
  <code>c:\windows\</code><br>
  <code>d:\media\</code>  </p>
  
  <p><strong>Default Value Assignment</strong><br>
  <code>myComboBox.Text = "C:\";</code></p>
  
  <p><strong>Result</strong><br>
  Initial value of ComboBox when the form opens is "<code>c:\program files\</code>".</p>
  
  <p>So what am I doing wrong? How do I correctly set a default value of an item not in the drop down list that begins with a possible selection?</p>