8 references to PrimaryScreen
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\Devices\ComputerTests.cs (1)
36
Assert.Equal(System.Windows.Forms.Screen.
PrimaryScreen
, computer.Screen);
System.Windows.Forms (3)
System\Windows\Forms\Rendering\DisplayInformation.cs (2)
30
if (s_bitsPerPixel == 0 && Screen.
PrimaryScreen
is not null)
37
s_bitsPerPixel = (short)Screen.
PrimaryScreen
.BitsPerPixel;
System\Windows\Forms\Screen.cs (1)
119
s_screens = [
PrimaryScreen
!];
System.Windows.Forms.Tests (2)
System\Windows\Forms\ScreenTests.cs (2)
29
Screen screen = Screen.
PrimaryScreen
;
202
Screen screen = Screen.
PrimaryScreen
;
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenshotService.cs (1)
49
if (Screen.
PrimaryScreen
is not { } primaryScreen)
TabControlTests.cs (1)
57
TestOutputHelper.WriteLine($"Primary screen: {Screen.
PrimaryScreen
?.WorkingArea}");