Highlighted item in ListView and ListBox when loses focus

Started by aymen_ellouze, June 13, 2011, 08:51:39 AM

Previous topic - Next topic

aymen_ellouze

Hi all,
when ListView loses fucus selected item is no longer highlighted. I have also set ShowSelectAlways to True.
Have I missed something?

I made a modeless form containing a listView and a ListBox in order to compare behaviour.
thx for advance
aymen ellouze
architect & software developer

Fred Tomke

Hi,

Quote from: aymen_ellouze on June 13, 2011, 08:51:39 AM
I have also set ShowSelectAlways to True.

This property doesn't seem to support value changing at runtime. It works fine if you set ShowSelectAlways at design time.

Regards,
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

aymen_ellouze

thx fred,
I did so, but the problem is that when the control loses focus, selcteditem in the listBox is still highlighted in 'blue' and the selceted item in the listView in 'grey'. Users often tell me that it is not clear enough and tha it causes confusion...
Does anyone have an idea how to do to get the same let's say 'blue'?

here is the file modified as suggested by fred.

Regards,
aymen ellouze
architect & software developer

owenwengerd

I don't think the list view control selection color is customizable.
Owen Wengerd (Outside The Box) / ManuSoft

aymen_ellouze

hi owen,
is it possible to have only the same standard color as in the listBox? (users always ask me that)
thx
aymen ellouze
architect & software developer

owenwengerd

As far as I know, Microsoft hard coded the selection color and there is no way to change it.
Owen Wengerd (Outside The Box) / ManuSoft