Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I have combo box that fill by dataset.

My code :
C#
combobox.DataSource = dataset.Tables["list"];
combobox.ValueMember = "fldcode";
comcobox.DisplayMember = "fldname";

That works well, now I want search in my combo box, with type in it.
By one or two or ... characters.

Please some one help me
Posted
Updated 19-Feb-12 23:55pm
v2
Comments
André Kraak 20-Feb-12 5:55am    
Edited question:
Added pre tags
Formatted text/code
Spelling/Grammar

1 solution

Hi, are you working in desktop application.

in desktop application, there 2 properties which enables searching.

1. AutoCompleteMode to "Suggest"
2. AutoCompleteSource to "ListItems"
 
Share this answer
 
Comments
matiye 20-Feb-12 6:30am    
thanks alot,my problem solved.
I have another question.
my lanquage is arabic,when I type character 'ی',do not bringe the words that start with 'ی',
do you know what am I doing???
thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900