ComponentOne SuperTooltip for WinForms
C1.Win.8 Assembly / C1.Framework Namespace / ScrollableControl Class / SetScrollPos Method
Specifies the new position of the scroll box. The position must be within the scrolling range.

In This Topic
    SetScrollPos Method (ScrollableControl)
    In This Topic
    Sets the position of the specified scroll bar.
    Syntax
    'Declaration
     
    Protected Function SetScrollPos( _
       ByVal nBar As System.Integer, _
       ByVal pos As System.Integer _
    ) As System.Integer
    protected System.int SetScrollPos( 
       System.int nBar,
       System.int pos
    )

    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
    See Also