midPageChange

Event for page changes (in middle of window).
[event] midPageChange([in] int page)
This event is 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 event receives the new page number as its only argument.

In continuous mode, this event is triggered when the page displayed in the middle of the window (i.e., at the vertical center of the window) changes. See pageChange for an event triggered when the page at the top of the window changes.

VB6:
Private Sub viewer_midPageChange(page) { pageNumLabel.Caption = page }
pageChange