DocumentViewer: Show page count

This commit is contained in:
Jonathan Jenne
2021-04-23 11:30:11 +02:00
parent 0f44ae980d
commit 0c28699d73
2 changed files with 36 additions and 27 deletions

View File

@@ -442,9 +442,10 @@ Public Class DocumentViewer
Private Sub UpdateaNavigationToolbar()
Try
Dim oCurrentZoom As Double = GdViewer.Zoom
Dim oCurrentPage As Integer = GdViewer.CurrentPage()
Dim oCurrentPage As Integer = GdViewer.CurrentPage
Dim oPageCount As Integer = GdViewer.PageCount
txtCurrentPage.EditValue = oCurrentPage.ToString()
txtCurrentPage.EditValue = oCurrentPage
labelPageCount.Caption = $"/ {oPageCount}"
If oCurrentPage = oPageCount Then
buttonLastPage.Enabled = False