listview item looses forecolor

  • Thread starter iris abramovitz
  • 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
 
H

Herfried K. Wagner [MVP]

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.
 
Joined
Jul 14, 2005
Messages
1
Reaction score
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top