I'm trying to change the behavior of the Windows.Forms ComboBox package so that the autocomplete drop-down list displays items according to the specified rules.
By default, if you use AutoComplete in a ComboBox, the following rule: "string s is included in drop down if (s.StartsWith (userEnteredTextInTheComboBox))" All that interests me really is to replace the new rule with the current one, but I cannot find way to get to it. (In particular, I would prefer s.Contains instead of s.StartsWith.)
I can combine clumsy solutions using two controls instead of one, but I would really be happier with the one that really does what I want.
Update: I found essentially the same question after some searching. The answer posed there suggests that using two controls to "fake" is the way to go.
c # autocomplete winforms combobox
user272551 Feb 13 '10 at 21:09 2010-02-13 21:09
source share