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?
Printable View
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?
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