custom listview loses item color when no item is selected

custom listview loses item color when no item is selected

Post by ih8you » Thu, 09 Sep 2004 09:05:55


I have a custom listView that works fine. There are items that are
colored red to notify the user that there is a problem. However, if
you select one of the red items, then select space below any of the
other items, the red item turns back to default black. The only code
getting called on this is a listView_Click event. If you select any
other item, no matter what color, from the listView, the original one
that was selected stays red. Anyone have any ideas on this? I'm
thinking this is a MS bug, since no other code is being called, and
the only time we change colors on these items are when they are added
to the list (on program load), or if the item's properties are edited.
Neither of these events are happening right now.

Thanks in advance.

~Brian
 
 
 

custom listview loses item color when no item is selected

Post by mohamed.mo » Thu, 09 Sep 2004 20:06:07

Hi Brian
i have been searching but didn't find any thing about bug that matchs your
problem , would you mind posting your code
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

 
 
 

custom listview loses item color when no item is selected

Post by Brian Suth » Fri, 10 Sep 2004 06:03:05

Lemme see if I can rip it out and isolate it. I'd cut/paste directly
form the project, but I'm sure our customers wouldn't be too happy with
that, even though it wouldn't be giving up any info. I'll try to put
something together in the next day or so. Thanks.


*** Sent via Developersdex http://www.yqcomputer.com/ ***
Don't just participate in USENET...get rewarded for it!