Click here to Skip to main content
11,811,971 members (55,329 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# C#4.0

Friends i am facing a problem with combobox.

I want , when user write something then on text change the whole data
should retrieved on the basis of text of combobox. It is retrieving,
but my problem is, it is filling combobox with element at 0th index.

To get rid of it i set autocomplete to false, but still it's not working.
It is filling it with 0th index element.

Please help me how should i solve this....

If any one is not getting me. then do one thing

Press window and R keys. Run will start, start typing it will sort it's recent
list with the keys you will enter.
I want same...

Posted 20-Nov-12 23:30pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

IF you have the problem that you will get a combobox with 5 elements and the first element in the combobox is NULL means theres nothing in it - just delete the first value everytime something like


or just use


hope this was your problem Wink | ;)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Nothing to do. But just Select Properties of combo box.


AutoCompeletMode "SuggestAppend"

AutoCompeletSource "ListItems"

it will work fine as you want. mean suggested items shown as you press key for searching. and also suggested item will be selected.

sorry for poor English.

i hope you got my point.

M USman

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

  Print Answers RSS
0 KrunalRohit 354
1 Palash Mondal_ 185
2 CHill60 180
3 OriginalGriff 178
4 Abhinav S 175
0 OriginalGriff 3,888
1 KrunalRohit 2,392
2 CPallini 2,240
3 Maciej Los 2,155
4 ppolymorphe 1,725

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100