Event for page changes (at top of window).
This event will be called whenever the viewer displays a new page.
This event is useful, for example, to update a "current page number" display in your application.
The page change event is called whenever the displayed page number changes. This can happen in several ways:
- the user hits the Page Up or Page Down key
- the user clicks on a hyperlink to a different page (or different PDF file)
- any of the "goto" or "scroll" functions are called
midPageChangefor an event triggered when the page in the middle of the window changes.
Private Sub viewer_pageChange() Handles viewer.pageChange pageNumLabel.Caption = viewer.currentPage End Sub