I am creating a application in c# and I would like to get the same effect on a trackbar component, like in the system volume application in windows 7 (the green line which represents the current sound level output).
I'd like to draw a green line behind the trackbar depending on some logic. The problem is that the trackbar has a background color, and if i draw anything behind it, the background color will paint over the line, and I can't draw over it because it will paint over the trackbar slider/button .
Do I have to implement my own trackbar paint method from scratch or is there any simpler solution?