WIndows Combobox AutoComplete - can you set the input duration?

We use ComboBoxes in our Winforms application with enabled functionality with type support (property AutoCompleteMode = Suggest, AutoCompleteSource = ListItems). When the user starts typing, the ComboBox will move forward to match what was printed, as intended. But if the user stops for a second or two in the middle of their input, autocomplete is “reset” and the next character that they print will then be used as a new starting point for autocomplete.

For example, let's say that they type “Bike” - the ComboBox will go on to record “Bicycles” in the ComboBox. But say that they type “Bik” and then stop for a few seconds, then type “e” - the ComboBox will forget about the entered “Bik” and go to the first entry to start with “e”.

Our users have expressed a desire to extend the time at which they are typed before it is "reset." Does anyone know if there is a way to tweak this or the code around it?

+3
source share
2 answers

No luck, the IAutoComplete API used by the ComboBox does not have this option.

+1
source

, .net System.Windows.Forms .

0

Source: https://habr.com/ru/post/1794756/


All Articles