listview item looses forecolor

  • Thread starter Thread starter iris abramovitz
  • Start date Start date
I

iris abramovitz

Hello All,

I have a listview item on listview with the property HideSelection set to
False.
I set the listview item forecolor to green and set the font to be bold.
When the listview loses its focus, the listview item that was selected
looses its color (goes back to default black), preserving its boldness.
I want to keep the forecolor, even upon lost focus
Is this a known bug??
Can anyone help??

Thx
Iris
 
Hello,

iris abramovitz said:
I have a listview item on listview with the property HideSelection set to
False.
I set the listview item forecolor to green and set the font to be bold.
When the listview loses its focus, the listview item that was selected
looses its color (goes back to default black), preserving its boldness.
I want to keep the forecolor, even upon lost focus
Is this a known bug??

I am not able to repro that on a Windows XP Professional machine running
..NET 1.0.
 
Hi all,
I have a similar problem as above mentioned.
I have a list view with HideSelection set to False.I have changed the backcolors of the listview items alternately(i.e zebra effect).Now if the user clicks in the list view itself in some place where there are no items , the selected listview item loses its backcolor.However it gets restored if someother item is selected in the list view.
This is reproducible in VS2003 on an XP machine.I tried overriding the OnPaint() method.But it was of no use
It wud really help if any body could tell me as to how to go about this problem
Thanks and Regards
Amita
 
Back
Top