Unless maybe you could somehow detect when this occurs and fix the selection afterward. I don't see any way to do what you are trying to do here. The TextChanged event then fires and the combo re-opens, which ends up selecting all of the text, so the entire "ab" is now selected. That's the behavior fo the SuggestAppend style. Wince there is no "ab" on the list, the combo closes up at this point. This time, the comb text changes to "ab". This works fine, the combo drops down, which it would have done even without the TextChanged code, and it shows "ActiveBorder" with everything bu the first "A" highlighted.The list shows all the items that begin with "A". This seems reasonable, but I'm not sure it's compatible with the SuggestAppend mode.Īnyway, when I run the sample, I type the letter "a". Your code is clearly intended to keep the dropdown dropped down at all times while the user is typing. ![]() ![]() ![]() So I changed that, and I added a handler for TextChanged like you have here. It sounds to me like you are using AutoCompleteMode = SuggestAppend, rather than Suggest as his sample is using. I took a look at the sample Mike attached above.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |