Input for WinForms | ComponentOne
C1.Framework Namespace / XView Class / SetScrollPos Method
Specifies the new position of the scroll box. The position must be within the scrolling range.

In This Topic
    SetScrollPos Method (XView)
    In This Topic
    Sets the position of the specified scroll bar.
    Syntax
    'Declaration
     
    
    Protected Function SetScrollPos( _
       ByVal nBar As Integer, _
       ByVal pos As Integer _
    ) As Integer
    protected int SetScrollPos( 
       int nBar,
       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