Autocomplete combo box tweaks
-
Hi All, I need a combobox which autocompletes from the Items list, but if the user is typing I need it to suppress keystrokes corresponding to characters that dont match items in the list, if that makes sense. So, you can type the name of a list item, but you cannot type a string that is not already in the list. Anyone know how to do this? Thanks Jon
using System.Beer;
-
Hi All, I need a combobox which autocompletes from the Items list, but if the user is typing I need it to suppress keystrokes corresponding to characters that dont match items in the list, if that makes sense. So, you can type the name of a list item, but you cannot type a string that is not already in the list. Anyone know how to do this? Thanks Jon
using System.Beer;
This article[^] has a LimitToList property that when true will fire a NotInList event. I'm sure it could be adapted to your needs. Another one here[^].
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)