how to make a auto suggest combobox??

nebchill26

Member
Joined
Oct 8, 2008
Messages
7
Location
San Mateo, Rizal, Philippines
Programming Experience
1-3
dear experts,
i have a combo box with data from database,it can already show all the data in the list when you click the list down,what i want to do is when i type on the combo box it can show me all the available items based on the text that i type, is it possible? thanks
 
Yes it is possible.

Set the DropDownStyle property to DropDownList,
AutoCompleteMode to Suggest,
AutoCompletesource to ListItems.


Thanks
Panna
 
Yes it is possible.

Set the DropDownStyle property to DropDownList,
AutoCompleteMode to Suggest,
AutoCompletesource to ListItems.


Thanks
Panna
Almost...you can't use DropDownList with AutoCompleteMode.Suggest - the combo must set to DropDown and then the other two will work just fine.
 
Hack said:
you can't use DropDownList with AutoCompleteMode.Suggest
DropDownList and Suggest works fine.
help said:
If you set ComboBoxStyle to DropDownList, the list displays only if AutoCompleteMode is Suggest or SuggestAppend.
 
Back
Top