Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Change the scrollbar
 

Change the scrollbar

How can I change the scrollbars. (I want to have have my own scrollbars instead of the default one). Actucally I want to change the look n feel of the default scrollbar.
Kundan3  Wednesday, May 11, 2005 2:17 PM
Kundan,

changing the look of the scrollbars is quite a task if you don't want to use something like WindowBlinds which can, if I remember correctly, change them Windows wide.

The System.Windows.Forms.ScrollBar class has a protected event called OnPaint which you may (if the class isn't sealed) be able to override in order to adjust the default drawing method!

Because the scrollbar draws itself polymorphaically (e.g. its drawing state is based upon so many different states), expect it to be a big task!   I know, I have had to write one from scratch back in the MS-DOS days...

Regards,
Ray
Ray Hayes  Wednesday, May 11, 2005 4:21 PM
Kundan,

changing the look of the scrollbars is quite a task if you don't want to use something like WindowBlinds which can, if I remember correctly, change them Windows wide.

The System.Windows.Forms.ScrollBar class has a protected event called OnPaint which you may (if the class isn't sealed) be able to override in order to adjust the default drawing method!

Because the scrollbar draws itself polymorphaically (e.g. its drawing state is based upon so many different states), expect it to be a big task!   I know, I have had to write one from scratch back in the MS-DOS days...

Regards,
Ray
Ray Hayes  Wednesday, May 11, 2005 4:21 PM

You can use google to search for other answers

Custom Search

More Threads

• Using 1.0.21.288 being a firewall as the DMZ?
• Server Download?
• . NET Terrarium 1.2.msi (where is it?)
• Multi-part question in regards to functionality
• source installation error "incorrect syntax"
• Problem to see new species..
• Open .cal file in C#
• Complete overhaul of Task vision Web service Layer
• To Avoid Sending Passwords over the Network in Plain Text
• Adding field to add task