Bunifu Horizontal ScrollBar is a control that is used to add horizontal scrolling capability to a control that does not have built-in scrolling for example container control. 

In addition, it includes some pretty neat and customizable enhancements such as changing the scrolling thumb’s color, allowing scroll animations and more. Below we show the default style:

Adding Bunifu Horizontal ScrollBar at Design Time

Simply locate Bunifu Horizontal Scrollbar in your toolbox and drop it on to your form. 

Adding Bunifu Horizontal ScrollBar at Run Time

We will use the Form Load event handler to run the code that adds our ScrollBar to our Form:

C# code

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

VB.NET code

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

    Dim hScrollBar As New Bunifu.Framework.UI.BunifuHScrollBar

    Controls.Add(hScrollBar)

End Sub

Custom properties

  • AllowCursorChanges - This property allows you to get or set 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 gets or sets the length of the ScrollBar’s thumb
  • MinimumThumbLength - This property gets or sets the minimum length of the ScrollBar’s thumb
  • ThumbMargin - This property gets or sets a value indicating whether the ScrollBar will allow changes to the cursor during the thumb’s movement
  • ThumbStyle - This property gets or sets 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 gets or sets the ScrollBar’s disabled or inactive state’s colors

That's it!

We hope you will enjoy using Bunifu Horizontal Scrollbar and that it 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?