private void FindMatchOrSetIndex(int index) { int match = -1; if (SelectedIndex == -1 && Text.Length != 0) match = FindStringCaseInsensitive(Text); if (match != -1) SetSelectedIndex (match, true); else SetSelectedIndex (index, true); }