Hello,
I am trying to use the autocomplete feature of the dotnet 2.0 combobox.
Everything works fine except when the strnig contains a forward slash
(/). For those items, the autocomplete text ends at the forward slash.
i.e. If the Items contained the string "My event 5/6/2006"
The autocomplete would only show "My event 5/", and thus would never
get a match.
Has anyone run across this? Any help appreciated.
Thanks.
Alex - 05 Aug 2006 15:46 GMT
Hi,
Look at the Notes section at the bottom of
http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.autocompl
etemode.aspx
Stop at / used to simplify paths and Urls entering. May be you can use
AutoCompleteMode = SuggestAppend or Suggest?
- Alex.
schleichv@ameritech.net - 05 Aug 2006 21:27 GMT
Yep. That is exactly what was happening. I had missed the note.
Thanks for pointing it out. I changed the combobox from a custom
source and placed my items in a the Items instead, then changed the
mode to suggest. This fixed the issue.
Thanks!