property ScrollBar.Value as Long
The value that the scroll box position represents.

TypeDescription
Long A long expression that indicates the control's value.

The Value property specifies the control's value. The control fires the Change event after user changes the control's value. The control fires the Changing property before changing the control's value. Use the Minimum and Maximum properties to specify the range's value. Use the Caption property to put a HTML text on any part of the control. The SmallChange property gets or sets the value added to or subtracted from the Value property when the thumb is moved a small distance. The LargeChange property gets or sets a value to be added to or subtracted from the Value property when the scroll box is moved a large distance. Use the Background property to change the visual appearance for any part of the control, in any state. . The WheelChange property indicates the amount by which the scroll box position changes when the user rolls the mouse wheel. 

The Value property goes from:

For instance, the following VB sample prints the control's Value on the control's thumb:

Private Sub ScrollBar1_Change()
    With ScrollBar1
        .Caption(exThumbPart) = .Value
    End With
End Sub

The following C++ sample prints the control's Value on the control's thumb:

void OnChangeScrollbar1() 
{
	CString strFormat;
	strFormat.Format( _T("%i"), m_scrollbar.GetValue() );
	m_scrollbar.SetCaption( 256, strFormat );
}

The following VB.NET sample prints the control's Value on the control's thumb:

With AxScrollBar1
    .set_Caption(EXSCROLLBARLib.PartEnum.exThumbPart, .Value.ToString())
End With

The following C# sample prints the control's Value on the control's thumb:

private void axScrollBar1_Change(object sender, EventArgs e)
{
    axScrollBar1.set_Caption(EXSCROLLBARLib.PartEnum.exThumbPart, axScrollBar1.Value.ToString());
}

The following VFP sample prints the control's Value on the control's thumb:

*** ActiveX Control Event ***

with thisform.ScrollBar1
	.Caption(256) = .Value
endwith