Results 1 to 2 of 2

Thread: [2008] - ListView Row Coloring

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    284

    [2008] - ListView Row Coloring

    2 questions,

    1). How do I set a color to RBG: 220, 231, 245
    Tried:
    item.BackColor("220, 231, 245")
    and
    item.BackColor = "220, 231, 245"
    and
    item.BackColor = Color("220, 231, 245")

    none work.



    2). my current code only highlights rows that have a value, how can I do the whole listview?
    vb Code:
    1. Dim item
    2.         For Each item In trackList.Items
    3.             If (item.Index Mod 2) = 0 Then
    4.                 item.BackColor = Color.Red
    5.             Else
    6.                 item.BackColor = Color.Yellow
    7.             End If
    8.         Next
    I am still very new to VB.NET, so I have MANY questions

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    284

    Re: [2008] - ListView Row Coloring

    Figured out my first question, but how about my second?
    I am still very new to VB.NET, so I have MANY questions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width