[RESOLVED] Toolstrip combo problem
Hi guys,
I have a form with a tool strip and a combo control in it. Now my combo control has the following items (e.g):
aarti drugs
acc ltd
tata chem
tata steel
zee tele
zodiac
The property Autocompletemode is SuggestAppend and autocomplete source is listitems. Now when I type something it fills it up and when I press enter that is selected.
In the selected change event I am getting the text of the combo for a particular item.
Now the problem -
- when I select an item from list for eg. tata steel here, I get index and item text.
- when i type acc the rest is filled and when i press enter I get that text in full (acc ltd)
- But now when I use down arrow to scroll to other item it does not scroll and instead only a part of text is highlighted
- try it guys and you will see what i am talking about.
I want to use down arrow to scroll among items. Initially it works, but if i type partial text and autocomplete it then the down arrow thing does not work and instead only partial highlighted text is shown.
I will be glad if anyone can help me solve it.
Thanks a lot,
Cheers,
GR
Re: Toolstrip combo problem
I tried it and the combobox seems to me to be working as expected. When typing in acc autocomplete suggests the correct item. After selecting something, pressing the down arrow shows me items that are filtered based on the text that is already typed. In this case all items that start with 'a'.
For example if I select tata (steel) and press enter that text is filled. Then if I press the down arrow I move through the listing of those items that begin with the letter t.
Maybe I'm not understanding your question?
Re: Toolstrip combo problem
Quote:
Originally Posted by
dlscott56
I tried it and the combobox seems to me to be working as expected. When typing in acc autocomplete suggests the correct item. After selecting something, pressing the down arrow shows me items that are filtered based on the text that is already typed. In this case all items that start with 'a'.
For example if I select tata (steel) and press enter that text is filled. Then if I press the down arrow I move through the listing of those items that begin with the letter t.
Maybe I'm not understanding your question?
Well what you can do is -
- select tata steel by click on combo box. so tata steel is selected.
- now type acc and the rest will be filled. press enter.
- now when u press the down arrow key you will find the problem. it wont goto next item in list. :(
Re: Toolstrip combo problem
I think what's happening is that you're selecting an item so there is now text in the box. So pressing the down arrow is looking for an item that matches the filter criteria already entered. In this case there is only one item that matches the criteria.
If you change it's properties to suggest, it works as you desired but doesn't automatically append the data.
I'm sure someone more experienced than me can come up with a better idea for you.
Re: Toolstrip combo problem
Thanks for your replies guys. By resetting the autocomplete source I solved the problem. I wrote code whereby i set autocomplete to none then reset it to listitems.
Cheers.