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. Inheritance on ListViewSubItem, BackColor

Inheritance on ListViewSubItem, BackColor

Scheduled Pinned Locked Moved C#
oopquestion
3 Posts 2 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.
  • T Offline
    T Offline
    T Willey
    wrote on last edited by
    #1

    This is my first attempt at inheritance, and it seems to be working okay, but I want to be able to assign a back color to visual show that the sub-item has been selected (new property I gave it). I used the Reflector to see how the code is done on the original ListViewSubItem, but I can do it the same as, as they assign the back color to the SubItemStyle, and I can't get to that since it's protected. Is there any other way to do what I want, or am I out of luck? Thanks in advance.

    Tim

    L 1 Reply Last reply
    0
    • T T Willey

      This is my first attempt at inheritance, and it seems to be working okay, but I want to be able to assign a back color to visual show that the sub-item has been selected (new property I gave it). I used the Reflector to see how the code is done on the original ListViewSubItem, but I can do it the same as, as they assign the back color to the SubItemStyle, and I can't get to that since it's protected. Is there any other way to do what I want, or am I out of luck? Thanks in advance.

      Tim

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Took me like 2 minutes Googling to find this[^]

      T 1 Reply Last reply
      0
      • L led mike

        Took me like 2 minutes Googling to find this[^]

        T Offline
        T Offline
        T Willey
        wrote on last edited by
        #3

        Thanks you! This has been bugging me for a couple of weeks. I don't know how I missed that property of the ListViewItem, but it seems to be what I'm looking for.

        Tim

        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