Bunifu Vertical ScrollBar is a control that is used to add vertical scrolling capability to a control that does not have built-in scrolling such as a container control. 

In addition to this, it includes some pretty neat and customizable enhancements such as changing the scrolling thumb’s color, allowing scroll animations and customizable enhancements such as changing the scrolling thumb’s color, allowing scroll animations and more.

How to add Bunifu Vertical ScrollBar at Design Time

Simply locate Bunifu Vertical Trackbar control in your toolbox and drag it on to your form. You can then customize using custom properties as it will be elaborated later in this article

How to add Bunifu Vertical ScrollBar at Run Time

We will use Form load event handler as shown below:

C# code

private void Form1_Load(object sender, EventArgs e)
{
    var vScrollBar = new Bunifu.Framework.UI.BunifuVScrollBar();
    this.Controls.Add(vScrollBar);
}

VB.NET code

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    Dim vScrollBar As New Bunifu.Framework.UI.BunifuVScrollBar

    Controls.Add(vScrollBar)

End Sub

Custom properties

The standard properties as found in the standard Windows Vertical ScrollBar have been provided in Bunifu Vertical ScrollBar. Below are the standard properties:

  • Maximum - This property sets the scrollbar’s maximum scrollable range – default value is 100
  • Minimum - This property sets the scrollbar’s minimum scrollable range – default value is 0
  • Value - This property sets the thumb’s value or position in the scrollbar – default value is 0
  • Large Change - This property sets the amount by which the thumb’s value changes when the user clicks in the scrollbar or presses the Page Up or Page Down keys – default value is 5
  • Small Change - This property sets the amount by which the thumb’s value changes when the user clicks a scroll arrow (for a future release) or presses an arrow key – default value is 1

Custom Bunifu Properties

Here are the customizable productivity and design properties of Bunifu Vertical ScrollBar:

  • AllowCursorChanges - This property gets or sets a value indicating whether the ScrollBar will allow changes to the cursor during the thumb’s movement
  • AllowHomeEndKeysDetection - This property gets or sets a value indicating whether the ScrollBar will allow detection of the Home/End special navigation keys
  • AllowIncrementalClickMoves - This property gets or sets a value indicating whether the ScrollBar will allow incremental thumb movements whenever the scrolling region is clicked at any one point
  • AllowMouseHoverEffects - This property gets or sets a value indicating whether the ScrollBar will allow mouse-hover effects when active
  • AllowMouseDownEffects - This property gets or sets a value indicating whether the ScrollBar will allow mouse-down effects when active
  • AllowScrollingAnimations - This property gets or sets a value indicating whether the ScrollBar will allow changes to the cursor during the thumb’s movement
  • AllowScrollKeysDetection - This property gets or sets a value indicating whether the ScrollBar will allow changes to the cursor during the thumb’s movement
  • BorderThickness - This property gets or sets the border-thickness of the ScrollBar
  • ScrollBarColor - This property gets or sets a value indicating whether the ScrollBar will allow changes to the cursor during the thumb’s movement
  • ScrollBarBorderColor - This property gets or sets a value indicating whether the ScrollBar will allow changes to the cursor during the thumb’s movement
  • ThumbColor - This property gets or sets a value indicating whether the ScrollBar will allow changes to the cursor during the thumb’s movement
  • ThumbLength - This property allows you to get or set the length of the ScrollBar’s thumb
  • MinimumThumbLength - This property allows you to get or set the minimum length of the Scroll bar thumb
  • ThumbMargin - This property allows you to get or set a value indicating whether the scroll bar will allow changes to the cursor during the thumb’s movement
  • ThumbStyle - This property allows you to get or set the thumb’s style in relation to the ScrollBar; there are two styles provided: Inset which allows the thumb to be confined within the ScrollBar, or Proportional which allows the thumb to be of the same width as the ScrollBar. If you’ve chosen the style Inset, you can control the distance between the thumb and the ScrollBar using the ThumbMargin property
  • OnDisable - This property allows you to get or set the ScrollBar’s disabled or inactive state’s colors

That's it!

We hope Bunifu Vertical ScrollBar will help you create better user experience for your users. 

Should you have feedback or suggestions please send us via chat on the bottom right corner of the screen. 

Did this answer your question?