Windows: Properly calculate Screen scaling

This commit is contained in:
Jonathan Jenne
2021-04-21 13:54:02 +02:00
parent 9f3eb8316a
commit 44c76e1192
5 changed files with 99 additions and 6 deletions

View File

@@ -1,4 +1,6 @@
Public Class frmStart
Imports Microsoft.Win32
Public Class frmStart
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
frmRelations.Show()
End Sub
@@ -10,4 +12,10 @@
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
frmFilesystem.Show()
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Dim oScreen As New DigitalData.Modules.Windows.Screen()
MsgBox("Scaling: " & oScreen.GetScreenScaling(Me))
End Sub
End Class