• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3682
  • Last Modified:

ListView Item & SubItem color

Hi,

I would like to be able to set an entire row the same color in a ListView control.  The Item.ForeColor property works fine for the Item but the Sub Items' colors are of course unchanged.  Is it possible to get the Sub Items to change color as well as the main Item?  If not then is there a work-around or, as a last resort, some other control that would function the same as the ListView but also allow for this color change?

Thanks!
0
syntel
Asked:
syntel
  • 2
1 Solution
 
amebaCommented:
  Dim k As Integer
   For k = 1 To 4
      itmx.ListSubItems(k).ForeColor = vbInactiveCaptionText
   Next
0
 
syntelAuthor Commented:
That did it.  Thanks!
0
 
amebaCommented:
Eh, B :(
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now