The WinVerticalScrollBar class represents an extensible and themable vertical scrollbar for Windows Forms. It supports both Windows XP and classic Windows themes and can adapt to the current Windows theme.
Background and foreground colors
When the scrollbar's UIStyle property is set to WindowsClassic, the BackColor and ForeColor properties can be set to change the background and foreground colors of the scrollbar.
VB.NET | Copy Code |
---|---|
|
C# | Copy Code |
---|---|
|
The values of the BackColor and ForeColor properties are not taken into consideration when the UIStyle property is set to WindowsXP. If UIStyle is set to System, the colors assigned to the BackColor and ForeColor properties will only be applied to the scrollbar if the system is in Windows Classic style.