Is there anyway to stop the selected item in a winforms combo box from being automatically highlighted when it is set? (either via the combobox property SelectedIndex or SelectedItem).
What happens is that we populate a combo box with a set of items and then set the index for the item we want to show in the combo but this then causes the text to be highlighted. When the combobox is disabled this means that it is very hard to read the text because the highlight colour is blue and the text colour is white. Looks like this behaviour is by design but it is very annoying!
The only solution I've found online and tried which works is to subclass the combobox control but this is too invasive and would mean that we would have to replace all combo boxes in our application to solve this issue. I've also tried setting the SelectionLength property on the combo to 0 after the parent control has loaded and have also tried calling Select(0,0) on the combobox but neither has the desired effect.
Any ideas?
Thanks