Tech Off Thread

5 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

ListView selection color

Back to Forum: Tech Off
  • User profile image
    MasterPi

    Don't suppose anyone knows off the top of their head what the System.Drawing.Color is of a ListView item when you select it?

  • User profile image
    DCMonkey

    System.Drawing.SystemColors.Highlight

  • User profile image
    MasterPi

    DCMonkey said:

    System.Drawing.SystemColors.Highlight

    Doh!

     

    Thanks Monkey!

  • User profile image
    W3bbo

    MasterPie said:
    DCMonkey said:
    *snip*

    Doh!

     

    Thanks Monkey!

    Technically no, if you're using Visual Styles. You can subclass ListView to do the Visual Style row-selection-thingie y'know.

  • User profile image
    MasterPi

    W3bbo said:
    MasterPie said:
    *snip*

    Technically no, if you're using Visual Styles. You can subclass ListView to do the Visual Style row-selection-thingie y'know.

    That's what I did. I needed the color for selection when the listview is unfocused (the unfocused color is a low visible shade of gray).

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.