diff --git a/Controls.DocumentViewer/DocumentViewer.vb b/Controls.DocumentViewer/DocumentViewer.vb index 69d35e6e..5f34fe3f 100644 --- a/Controls.DocumentViewer/DocumentViewer.vb +++ b/Controls.DocumentViewer/DocumentViewer.vb @@ -195,6 +195,7 @@ Public Class DocumentViewer Else btnPrint.Visible = True End If + End Sub Private Sub UpdateMainUi() Exit Sub @@ -477,7 +478,7 @@ Public Class DocumentViewer heightInches = GdViewer.PageHeight / GdViewer.VerticalResolution End If - Me.statusbar.Text = "Type: " + GetDocumentTypeLabel() + " - " + + Me.infoLabel.Text = "Type: " + GetDocumentTypeLabel() + " - " + "Pagesize (zoll): " + Trim(Str(Math.Round(widthInches, 2))) + " × " + Trim(Str(Math.Round(heightInches, 2))) + " - " + "Pagesize (pixel): " + Trim(Str(GdViewer.PageWidth)) + " × " + Trim(Str(GdViewer.PageHeight)) + " - " + "Horizontal resolution: " + Trim(Str(Math.Round(GdViewer.HorizontalResolution, 2))) + " DPI - " + diff --git a/GUIs.Test.DocumentViewerTest/Form1.Designer.vb b/GUIs.Test.DocumentViewerTest/Form1.Designer.vb index b9109a3f..c83cf8f2 100644 --- a/GUIs.Test.DocumentViewerTest/Form1.Designer.vb +++ b/GUIs.Test.DocumentViewerTest/Form1.Designer.vb @@ -51,20 +51,20 @@ Partial Class Form1 ' 'Button2 ' - Me.Button2.Location = New System.Drawing.Point(711, 9) + Me.Button2.Location = New System.Drawing.Point(12, 38) Me.Button2.Name = "Button2" - Me.Button2.Size = New System.Drawing.Size(77, 23) + Me.Button2.Size = New System.Drawing.Size(637, 23) Me.Button2.TabIndex = 2 - Me.Button2.Text = "Load Path" + Me.Button2.Text = "Load Form3 which loads Form4" Me.Button2.UseVisualStyleBackColor = True ' 'Button3 ' - Me.Button3.Location = New System.Drawing.Point(711, 38) + Me.Button3.Location = New System.Drawing.Point(12, 67) Me.Button3.Name = "Button3" - Me.Button3.Size = New System.Drawing.Size(77, 23) + Me.Button3.Size = New System.Drawing.Size(637, 23) Me.Button3.TabIndex = 2 - Me.Button3.Text = "Load Path" + Me.Button3.Text = "Load Form4" Me.Button3.UseVisualStyleBackColor = True ' 'Form1