Change the width of the scroll bars

I am working on a program for touch screens. I am using C # and Visual studio 2008. Is there a way to change the width of the scroll bars? I know what I can change in the properties of the Windows screen. But I want only in my program not in the complete system. Thanks for the help!

+5
source share
2 answers

Check this:

Winforms - Adjust vertical scrollbar width on CheckedListBox

Also worth mentioning:

.NET Compact framework - extend scrollbars

Moreover, but this time with a better solution using the scroll bar control:

Change scrollbar width

Another in which the guy teaches how to create his own scroll control (interesting):

Set the scrollbar width of the DataGridView

Last (worth a try):

Is there a way to get the height and width of the scrollbar for a ListView control

+6
source

The easiest way is to look for scroll instances in the / control controlcollection form, and then just update the width value.

foreach(Control ctrl in dataGridProducts.Controls) if (ctrl.GetType() == typeof(VScrollBar)) ctrl.Width = 100; 

It works on Windows CE with a point compact card

+2
source

Source: https://habr.com/ru/post/1334199/


All Articles