Get page count

The number of pages in the currently loaded PDF can be found by using PageCount property.

int count = pdfViewerControl1.PageCount;
Dim count As Integer = pdfViewerControl1.PageCount