SetScrollPos Method (ScrollableControl)
Sets the position of the specified scroll bar.
'Declaration
Protected Function SetScrollPos( _
ByVal As System.Integer, _
ByVal As System.Integer _
) As System.Integer
protected System.int SetScrollPos(
System.int ,
System.int
)
Parameters
- nBar
- pos
- Specifies the new position of the scroll box. The position must be within the scrolling range.
Return Value
The previous position of the scroll box indicates success. Zero indicates failure