method Surface.ScrollTo (X as Long, Y as Long)
Scrolls the surface to giving position.

TypeDescription
X as Long A Long expression that specifies the x-position where the surface should be scrolled.
Y as Long A Long expression that specifies the y-position where the surface should be scrolled.
Use the ScrollTo method of the control to scroll the surface at specified position. The MovePoint method of the control moves the surface from the one point to another. The MoveCorner method scrolls the surface from a corner to another. The ScrollTo method ensures that the element fits the surface's visible area. The control's ScrollPos, ScrollX and ScrollY properties specify the surface's scroll position.