PC Review


Reply
Thread Tools Rate Thread

custom listview loses item color when no item is selected

 
 
Brian S
Guest
Posts: n/a
 
      8th Sep 2004
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
 
Reply With Quote
 
 
 
 
Mohamoss
Guest
Posts: n/a
 
      8th Sep 2004
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

 
Reply With Quote
 
Brian Sutherland
Guest
Posts: n/a
 
      8th Sep 2004
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.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
listview item loses background color after I change selection ari Microsoft VB .NET 5 24th Nov 2008 04:56 PM
listview loses highlighted item Rich Raffenetti Microsoft VB .NET 6 7th Dec 2007 04:50 AM
how can i get the index of a selected listview item and index a related arraylist item? forest demon Microsoft C# .NET 2 10th Nov 2006 05:45 AM
Listview Item.Selected not populating Listview.SelectedItems collection Chris Adams Microsoft Dot NET Framework Forms 0 23rd Apr 2004 01:30 AM
listview selected item Steve Microsoft VB .NET 3 11th Jan 2004 04:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:26 PM.