Version

Scrollbars Property

Returns/sets a value which determines when the control displays scrollbars.
Syntax
'Declaration
 
Public Property Scrollbars As ScrollbarStyle
public ScrollbarStyle Scrollbars {get; set;}
Remarks

Note that this property only has meaning for control Style ‘0 – Explorer’.

Example
The following code demonstrates how to set the scrollbar style so that it always displays. If it is not needed, the control will disable it. Always showing the scrollbar helps eliminate the 'jumpiness' that can occur when the scrollbar alternately appears and disappears as groups are expanded or collapsed. This, in turn, causes the groups to change size and position slightly to account for the available client space.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button12.Click

		' Set the scrollbar style to 'Always' so that the scrollbar always shows.  This will 
		' eliminate the 'jumpiness' that occurs if Scrollbars are set to automatic.  When set
		' to Automatic the scrollbars are appear/disappears based on whether they are needed
		' which causes the groups in the control to shift slightly.
		'
		' Note that the Scrollbars property only has meaning of the control style is ExplorerBar.
		If (Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar) Then
			Me.ultraExplorerBar1.Scrollbars = ScrollbarStyle.Always
		End If

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button12_Click(object sender, System.EventArgs e)
		{
			// Set the scrollbar style to 'Always' so that the scrollbar always shows.  This will 
			// eliminate the 'jumpiness' that occurs if Scrollbars are set to automatic.  When set
			// to Automatic the scrollbars are appear/disappears based on whether they are needed
			// which causes the groups in the control to shift slightly.
			//
			// Note that the Scrollbars property only has meaning of the control style is ExplorerBar.
			if (this.ultraExplorerBar1.Style  ==  UltraExplorerBarStyle.ExplorerBar)
				this.ultraExplorerBar1.Scrollbars = ScrollbarStyle.Always;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also