views:

280

answers:

1

The .NET ComboBox autocomplete will not fully autocomplete with the display text contains a slash. It completes only up to the slash, leaving SelectedIndex == -1 and SelectedValue == null.

This behavior stupidly persists no matter whether your autocompletesource is set to ListItems rather than FileSystem or URL.

Is there any workaround for this that doesn't involve just throwing the ComboBox class away and writing a "MyComboBox" class?

+1  A: 

Looks like MS is well aware of this behavior. I suspect you've seen the note on their docs page, if not the link to it is here.

itsmatt
yes I've seen the note. But I found no solution on that page.
Clyde
You've probably seen this 'solution' too then: http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/55c91e04-0cbd-4189-84be-cb1258447ae5/
itsmatt