If the value assigned is greater than Maximum, the Maximum value will be adjusted to the newly assigned minimum. Likewise, if the current Value is greater than the assigned value, the Value will be adjusted to the newly assigned minimum.
Note: If associated UltraPanel.AutoScroll value is True, setting this property will have no effect.
Imports System.Windows.Forms Imports Infragistics.Win ' Make sure AutoScroll is False so the scroll bar properties can be set manually. Me.UltraPanel1.AutoScroll = False ' Show and disabled the horizontal scroll bar Me.UltraPanel1.HorizontalScrollProperties.Visible = True Me.UltraPanel1.HorizontalScrollProperties.Enabled = False ' Show the vertical scroll bar Me.UltraPanel1.VerticalScrollProperties.Visible = True ' Set the value range for the vertical scroll bar to go from 0 to 200 Me.UltraPanel1.VerticalScrollProperties.Minimum = 0 Me.UltraPanel1.VerticalScrollProperties.Maximum = 200 ' Set the small change to 5. This will be used when the scroll arrows are ' pressed at either end of the scroll track. Me.UltraPanel1.VerticalScrollProperties.SmallChange = 5 ' Set the large change to 100. This will be used when clicking the scroll ' track on either side of the scroll thumb. Me.UltraPanel1.VerticalScrollProperties.LargeChange = 100 ' Move the vertical scroll thumb so its position is 50. Me.UltraPanel1.VerticalScrollProperties.Value = 50
using System.Windows.Forms; using Infragistics.Win; // Make sure AutoScroll is False so the scroll bar properties can be set manually. this.ultraPanel1.AutoScroll = false; // Show and disabled the horizontal scroll bar this.ultraPanel1.HorizontalScrollProperties.Visible = true; this.ultraPanel1.HorizontalScrollProperties.Enabled = false; // Show the vertical scroll bar this.ultraPanel1.VerticalScrollProperties.Visible = true; // Set the value range for the vertical scroll bar to go from 0 to 200 this.ultraPanel1.VerticalScrollProperties.Minimum = 0; this.ultraPanel1.VerticalScrollProperties.Maximum = 200; // Set the small change to 5. This will be used when the scroll arrows are // pressed at either end of the scroll track. this.ultraPanel1.VerticalScrollProperties.SmallChange = 5; // Set the large change to 100. This will be used when clicking the scroll // track on either side of the scroll thumb. this.ultraPanel1.VerticalScrollProperties.LargeChange = 100; // Move the vertical scroll thumb so its position is 50. this.ultraPanel1.VerticalScrollProperties.Value = 50;
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