Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...

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...

Thanks.
Posted

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


C#
ComboBox1.Items.RemoveAt(0)


or just use

XML
ComboBox1.Items.Remove("Tokyo")



hope this was your problem ;)
 
Share this answer
 
Nothing to do. But just Select Properties of combo box.

Try
this
SET COMBO BOX PROPERTIES


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
PAKISTAN
 
Share this answer
 

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