Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. ListView: set "BackColor" in a SubItem

ListView: set "BackColor" in a SubItem

Scheduled Pinned Locked Moved C#
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Patricio Tapia
    wrote on last edited by
    #1

    I have a problem: if (radioButton1.Checked) a.SubItems[1].BackColor = Color.Green; else if (radioButton2.Checked) a.SubItems[1].BackColor = Color.Orange; else if (radioButton3.Checked) a.SubItems[1].BackColor = Color.Red; else if (radioButton4.Checked) a.SubItems[1].BackColor = Color.White;

    S V 2 Replies Last reply
    0
    • P Patricio Tapia

      I have a problem: if (radioButton1.Checked) a.SubItems[1].BackColor = Color.Green; else if (radioButton2.Checked) a.SubItems[1].BackColor = Color.Orange; else if (radioButton3.Checked) a.SubItems[1].BackColor = Color.Red; else if (radioButton4.Checked) a.SubItems[1].BackColor = Color.White;

      S Offline
      S Offline
      Skippums
      wrote on last edited by
      #2

      Are you constipated? Are rabbits eating the cabbage in your garden? Are you on an airplane that has been hijacked? No? Then perhaps your problem is that you insufficiently described the "problematic" results you are seeing from running the above code, and will get NO help until you do. Be specific. -Jeff

      1 Reply Last reply
      0
      • P Patricio Tapia

        I have a problem: if (radioButton1.Checked) a.SubItems[1].BackColor = Color.Green; else if (radioButton2.Checked) a.SubItems[1].BackColor = Color.Orange; else if (radioButton3.Checked) a.SubItems[1].BackColor = Color.Red; else if (radioButton4.Checked) a.SubItems[1].BackColor = Color.White;

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        And the first problem I spotted was "You forgot to mention your query". :)

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups