Results 1 to 4 of 4

Thread: Listview control help: Header and selected line color

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2014
    Posts
    3

    Listview control help: Header and selected line color

    Hello all,

    I have serached the forum but I can not find if it is possible to change the color of the header and the slected line ? I do not want this blue as the color of the selected line.

    Name:  Listview.jpg
Views: 193
Size:  19.3 KB

    Per

  2. #2
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: Listview control help: Header and selected line color

    For the headers: No Idea. Probably to do with systemcolors and/or color-themes
    For the selected line: if i remember correctly, there are several color-properties for the ListView. I'd check out some of those. If it doesn't work it's probably systemcolors again
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  3. #3
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,238

    Re: Listview control help: Header and selected line color

    I don't know about the header colour but the selected line colour comes from the system colours.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Listview control help: Header and selected line color

    Why not just make use of the Common Controls version 6.0 assembly to give your ListView a less "caveman" look and call it good?

    Name:  sshot1.png
Views: 110
Size:  20.5 KB

    Example


    Aside from that about all you can do is roll your own substitute, look for a 3rd party "skinnable" control, or dig under the covers and owner-draw everything.

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