I need to paint it my self (need to change it's color for starters)
And, unfortunately, I can't do something like that, or rather it would be
difficult, because I need to control all the scroll bars on the form,
including ones which .NET brings up (e.g. scroll bar in listbox)..
The best guess I've got, is to tap into the message queue and trap the all
the paint events (WM_PAINT), and if they are going to a scroll bar, do
something else.. But that sounds messy.
Roy said:
I created a UserControl, put a scrollbar in it, covered the scroll buttons
with my own buttons, adjusted the width of the scroll bar to suit my "Touch
Screen" needs, anchored the scrollbar & buttons within the UserControl, and
defined / implemented an IScrollable interface. Additionally, I had to set
AutoScroll to false and associate the control I wanted to scroll with my
UserControl-based ScrollBar. Each control then had to implement my
IScrollable interrface.
By using the existing VScrollBar I didn't have to implement the sizing
logic of the bar itself, yet I had some control over the rendering of it.
Perhaps it was not the most elegant way of doing it, but I was new to .Net
and User Interface development.