In some applications, you may want to change the thickness of the scroll bars on the list control. By setting the HScrollBar and VScrollBar properties, you can modify the thickness of each scroll bar individually in code.
Scrollbars with default values.
Scrollbars with a height and width value of 5 px.
Scrollbars with a height and width value of 25 px.
As in the following code, you can change the HScrollBar and VScrollBar property values, to create most any scroll bar thickness variation.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1List1.VScrollBar.Width = 40 Me.C1List1.HscrollBar.Height = 50 |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1List1.VScrollBar.Width = 40; this.c1List1.HscrollBar.Height = 50; |