ScrollTo Method

Applies to:  Subclasser object, PowerForm control, SubForm Control
See also:  ScrollToControl Method, Method and Function Index

Scrolls a window to a specific point.

Syntax:

object.ScrollTo(x As Long, y As Long)

The ScrollTo syntax has these parts:

Part Description
object The name of an object in the Applies to list.
x The new position for the horizontal scroll bar.
y The new position for the vertical scroll bar.

Remarks:

If object is a SubForm control, then the ScrollTo method is only available if the SubForm's View property is vwSingleForm.

If object is a SubForm control, or if the scroll bars are set up to scroll in one pixel increments, then the point x,y will become the top-left corner of the visible area of the form.

Home

Copyright and Disclaimer