GoForward method
Reverses the action of the GoBack method on a Map object; similar to clicking Forward on the View menu. Fails if the GoBack method or the Back command has not been previously called.
Applies to
Objects: Map
Syntax
object.GoForward
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a Map object. |
Example
Sub ZoomInGoBackThenForward()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Pan the map, then go back, then go forward to the panned view
objApp.ActiveMap.Pan geoNorthWest
objApp.ActiveMap.GoBack
objApp.ActiveMap.GoForward
End Sub