Hi,
I'm using an UltraCombo and I have the DropDownStyle set to DropDownList. When the user types a letter, the control displays the first matching item starting with that letter. That's great. The users want to be able to type the same letter again and get the second item in the list starting with that letter. e.g. A state list where the user types I and gets Idaho. Then they type I again and Illinois, etc. I looked at all of the properties and looked around this forum but I don't see how to do it. Can this be done with the UltraCombo?
Thanks,
Joe
Joe,
Set the AutoCompleteMode of the UltraCombo to AutoComplete.None and this will give you the behavior you are looking for:
this.ultraCombo1.AutoCompleteMode = AutoCompleteMode.None;
Let me know if you have any questions with this matter.
Hi Alan,
Thanks for the reply. I couldn't find the AutoCompleteMode property. I'm running ver 8.1. I did a little research and I found that AutoCompleteMode replaces AutoEdit. I tried combo.AutoEdit = AutoCompleteMode.None. It worked!! I was surprised though that the AutoCompleteMode enum was available in my version but the AutoCompleteMode property wasn't??
Anyway, it works. Thanks again!
Hi All,
I have a follow up question to my earlier post. The above situation works. The users want to be able to type one char and go to the first matching item. If they type 2 or more characters they will go to that matching list item, if found. They also want to be able to type that same character repeatedly and cycle through all of the list items that start with that letter.
e.g.
Type "I" in a state list, go to IA
Type "IL", goto "IL"
Type "III", cycle through IA, ID, IL.
Right now when they type the same letter two or more times (without pausing), the combo will look for a matching list item (one that starts with "II" in my example) if it is not found, it does nothing. If they type slowly, they can cycle through the matching items but they must pause after each key press.
Is there a way to get the desired functionality.
Hi Joe,
There's no way to do this. In fact... I'm not sure I see how that could possibly work. If you press "I" and then press "I" again, how would the control know whether you wanted to go to the first item beginning with "II" or the second item that starts with "I"?
Hi Mike,
Thanks for the response. We are replacing a VB6 application. The current combo box will look for an item that has multiple characters that the user typed. If it does not exist in the list, then it goes to the next item starting with that character. It responds very quickly. The current combo is a user control and I don't have the code for it.