Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a dictionary and i want to add auto complete to a combobox by set the autocompletemode to suggest and put all of my words to that combobox, but the problem is here when i paste my words to the combobox it just get some of the not all of them and i couldn't add any more words.
any help will be appreciated.
BR.
Posted

Well first of all that is not a good solution/ideea.

Anyway you can set the ComboBox.MaxDropDownItems to maximum 100.

Here's a link.
 
Share this answer
 
thanks alot but what do you suggest to create autocomplete words for my combobox
i mean when user enter A combobox suggest related words and get those related words from a file
 
Share this answer
 
Hi,

Really good question. i don't know if this solution fit in your problem.

you can create one custom control as more number of record need more detail search criteria. so create your own custom control and through that you can achieve it.

let me know if you need idea about how you will create customized control.

Thanks
-Amit.
 
Share this answer
 
I don't understand very well but if you can show me how to create your own custom control
really appreciated
 
Share this answer
 
Comments
lukeer 21-Feb-12 9:07am    
This is no solution.
If you want to comment on Solution 3, use the "Have a Question or Comment" button. It will open a text box you can enter your question in.
As a bonus, the poster of Solution 3 will be notified that you commented on his solution.
You do not need to add 40000 words to a combo box. What you need to do is achieving auto-complete.

(And as some have responded, adding 40k words to a combo box is a really bad idea)

Look at the way Google does auto complete. It does not load all the possible combinations even before we type anything. But after typing a letter it shows FEW most likely phrases. And after typing another letter, it clears out the current list and populates the suggestions with new set of phrases. That's the functionality you want to achieve.

Try hooking into the control's keypress event, and fetch few most likely suggestions.
 
Share this answer
 
yes your right and good idea but can you help me how to do that please
 
Share this answer
 
Comments
lukeer 21-Feb-12 9:07am    
Same here as in my comment to your "Solution" 4.

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