I have a CheckListBox on my form but I want to make the scrollbar wider as users are using touch screens not a mouse.
How can I change the scroll bar width?
EDIT: I am talking about the width of the vertical scrollbar
I have a CheckListBox on my form but I want to make the scrollbar wider as users are using touch screens not a mouse.
How can I change the scroll bar width?
EDIT: I am talking about the width of the vertical scrollbar
The following code makes use of SPI_SETNONCLIENTMETRICS to change the system wide setting for the scrollbar width. NOTE that it will change all applications on the system not just a single one. You should probably make this a configuration item so that you can change the width back to a default if you need to.
You can then use this code to see the current value for the scrollbar width
You can then use this code to change the size of the scrollbar...
You can only do that by creating a custom CLB control and overriding the OnPaint event.
Edit: Ok, still very basic, but this article on CodeProject might help you: http://www.codeproject.com/KB/miscctrl/cutebutton.aspx
Edit 2: You might like the following example of a customized scrollbar: http://www.codeproject.com/KB/miscctrl/MotifScrollBars.aspx
To change the physical size of the scrollbar, see this.
This came from the following page: Horizontal Scrollbar in ListBox. I modified it for Winforms and it worked for me: