c# - When typing in dropdownlist, make Windows search for more than 1 character? -


this may bit confusing explain, have combobox set dropdownlist style. default, typing while object has focus searches item beginning whatever user typed. example, in combobox 1, 2, , 3, typing 1 select 1. if have combobox a1, a2, a3 however, typing a1 not combined 1 string, rather search , search 1. know how change behavior in cleanest fashion.

what i'm trying have combobox fractions such 1/8, 1/16, , on, accessed typing "1/8". however, search function takes 1 character @ time.

if need suggestion, can use code block:

    var peopleautocomplete =                             context.people                             .select(c => new { c.firstname, c.surname })                             .toarray();    list<string> peopleautocompletestring = new list<string>();    foreach (var item in peopleautocomplete)    {          peopleautocompletestring.add(item.surname + " " + item.firstname);    }    autocompletestringcollection collectionsource = new autocompletestringcollection();    collectionsource.addrange(peopleautocompletestring.toarray());    txtbx_surname.autocompletecustomsource = collectionsource; 

my sample code, add auto complete feature 'textbox'.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -