Windows: Add Screen CLass

This commit is contained in:
Jonathan Jenne
2021-03-31 14:42:50 +02:00
parent 781a6ae55b
commit d360a43a25
3 changed files with 24 additions and 1 deletions

View File

@@ -319,7 +319,7 @@ Public Class Window
Private Function GetRelativeRectangle(ControlRect As NativeMethods.RectangleAPI, WindowRect As NativeMethods.RectangleAPI, Anchor As Anchor) As NativeMethods.RectangleAPI
Try
Dim oScreenRect As Rectangle = Screen.PrimaryScreen.Bounds
Dim oScreenRect As Rectangle = System.Windows.Forms.Screen.PrimaryScreen.Bounds
Dim oLeft, oBottom, oTop, oRight As Integer
_Logger.Debug("Calculating Rectangle for Anchor {0}", Anchor.ToString)