Parameters
- NewHPos
- The new horizontal coordinate, in pixels, where the horizontal scrollbar is to be moved.
- NewVPos
- The new vertical coordinate, in pixels, where the vertical scrollbar is to be moved.
Just to remind you, that all coordinates are 0-based with the origin being in the top left corner in the document pages area and they are related to the current page determined by the CurrentPage property.
'We assume that the GdViewer1 control has been properly integrated 'and your document has been properly displayed as well. If GdViewer1.HorizontalScrollBarVisible OrElse GdViewer1.VerticalScrollBarVisible Then GdViewer1.SetScrollBarsPosition(GdViewer1.GetHorizontalScrollBarMaxPosition(), GdViewer1.GetVerticalScrollBarMaxPosition()) End If
//We assume that the GdViewer1 control has been properly integrated //and your document has been properly displayed as well. if (GdViewer1.HorizontalScrollBarVisible || GdViewer1.VerticalScrollBarVisible) GdViewer1.SetScrollBarsPosition(GdViewer1.GetHorizontalScrollBarMaxPosition(), GdViewer1.GetVerticalScrollBarMaxPosition());