CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Location
    America
    Posts
    130

    Changing The Selection Color of Listbox

    how can i change the color of the backround on the item you have selected in a listbox? It's not one of the properties in the listbox itself, is there some way i can subclass this in?


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Changing The Selection Color of Listbox

    It is Windows Color scheme. You can change it from Control panel. and it wil affect all applications. (and all selections, in every other "normal" control )

    You can ofcourse do it with subclassing for this listbox only!.
    You need to paint the item in different color. Take a look at the code in articles section: - Non-Selectable listitems ( by .. well.. me!).
    http://codeguru.developer.com/vb/articles/1834.shtml

    You can take the idea from there.

    RK

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

Featured