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