how to change color of selection bar of listbox
Printable View
how to change color of selection bar of listbox
The colors used are system colors. In order to tweak colors, one of 4 possibilities?
1) Change the system color for selected items but it will affect every window in every app that uses that system color
2) Subclass the listbox and try to draw the list item yourself. Very advanced.
3) Create a custom control that allows you to do the drawing.
4) Maybe use a different control? There are topics on this forum for changing row colors of a ListView control.
can we do this with code
give me example ... please
Search the forum for "subclass listbox".