When using a data_reader I have no problem using the _Leave method to set .SelectedItem = Nothing to eliminate the highlighted blue.
However, when using a data_adapter I am having a terribly difficult time getting rid of the highlight. I "fixed" the problem using:
monitorListBox.SelectedIndex = -1
monitorListBox.SelectedItem = Nothing
but then when I do other things I get an ugly reset since there is technically a _SelectedIndexChanged event. Additionally, I have also tried _LostFocus - no luck there either.
Anybody know how to rid the highlight from a listbox using a data_adapter binding?
However, when using a data_adapter I am having a terribly difficult time getting rid of the highlight. I "fixed" the problem using:
monitorListBox.SelectedIndex = -1
monitorListBox.SelectedItem = Nothing
but then when I do other things I get an ugly reset since there is technically a _SelectedIndexChanged event. Additionally, I have also tried _LostFocus - no luck there either.
Anybody know how to rid the highlight from a listbox using a data_adapter binding?