I'm developing a Winforms application and need to set design of scrollbar. I need to change colors of arrows, slider and background of a track. I found a ScrollBarRenderer on msdn msdn ScrollBarRenderer Info and now I don't understand how to set up rendering via methods like
ScrollBarRenderer.DrawRightHorizontalTrack(e.Graphics, ClientRectangle, ScrollBarState.Normal); // Draw the thumb and thumb grip in the current state. ScrollBarRenderer.DrawHorizontalThumb(e.Graphics, thumbRectangle, thumbState); ScrollBarRenderer.DrawHorizontalThumbGrip(e.Graphics, thumbRectangle, thumbState); This code is executed in OnPaint.
I'll be very grateful for any help.