48 references to HighDpiMode
Accessibility_Core_App (1)
Program.cs (1)
16Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
Microsoft.VisualBasic.Forms (6)
Microsoft\VisualBasic\ApplicationServices\ApplyApplicationDefaultsEventArgs.vb (2)
23highDpiMode As HighDpiMode, 58Public Property HighDpiMode As HighDpiMode
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (4)
89Private _highDpiMode As HighDpiMode = HighDpiMode.SystemAware 224Protected Property HighDpiMode() As HighDpiMode 228Set(value As HighDpiMode)
Microsoft.VisualBasic.Forms.Tests (3)
System\Windows\Forms\WindowsFormsApplicationBaseTests.vb (3)
30HighDpiMode.Should.Be(HighDpiMode.SystemAware) 31HighDpiMode = HighDpiMode.PerMonitorV2 32HighDpiMode.Should.Be(HighDpiMode.PerMonitorV2)
ScratchProject (1)
Program.cs (1)
14Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
ScratchProjectWithInternals (1)
Program.cs (1)
15Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
System.Windows.Forms (3)
Properties\TypeForwards.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Windows.Forms.HighDpiMode))]
System\Windows\Forms\Application.cs (2)
419public static HighDpiMode HighDpiMode => ScaleHelper.GetThreadHighDpiMode(); 1424public static bool SetHighDpiMode(HighDpiMode highDpiMode)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\FormatStringEditor.cs (1)
30Application.SetHighDpiMode(HighDpiMode.SystemAware);
System.Windows.Forms.Primitives (28)
System\Windows\Forms\Internals\ScaleHelper.cs (28)
38/// This value may change when <see cref="SetProcessHighDpiMode(HighDpiMode)"/> is called. 368internal static HighDpiMode GetThreadHighDpiMode() 377return HighDpiMode.SystemAware; 382return HighDpiMode.DpiUnaware; 387return HighDpiMode.PerMonitorV2; 392return HighDpiMode.PerMonitor; 397return HighDpiMode.DpiUnawareGdiScaled; 406return HighDpiMode.DpiUnaware; 408return HighDpiMode.SystemAware; 410return HighDpiMode.PerMonitor; 416return PInvoke.IsProcessDPIAware() ? HighDpiMode.SystemAware : HighDpiMode.DpiUnaware; 421return HighDpiMode.DpiUnaware; 428internal static bool SetProcessHighDpiMode(HighDpiMode highDpiMode) 436HighDpiMode.SystemAware => DPI_AWARENESS_CONTEXT.DPI_AWARENESS_CONTEXT_SYSTEM_AWARE, 437HighDpiMode.PerMonitor => DPI_AWARENESS_CONTEXT.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE, 438HighDpiMode.PerMonitorV2 => 443HighDpiMode.DpiUnawareGdiScaled => 457HighDpiMode.DpiUnaware or HighDpiMode.DpiUnawareGdiScaled => PROCESS_DPI_AWARENESS.PROCESS_DPI_UNAWARE, 458HighDpiMode.SystemAware => PROCESS_DPI_AWARENESS.PROCESS_SYSTEM_DPI_AWARE, 459HighDpiMode.PerMonitor or HighDpiMode.PerMonitorV2 => PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE, 470case HighDpiMode.DpiUnaware: 471case HighDpiMode.DpiUnawareGdiScaled: 474case HighDpiMode.SystemAware: 475case HighDpiMode.PerMonitor: 476case HighDpiMode.PerMonitorV2:
System.Windows.Forms.Tests (2)
System\Windows\Forms\ApplicationTests.cs (2)
355[InvalidEnumData<HighDpiMode>] 356public void Application_SetHighDpiMode_SetInvalidValue_ThrowsInvalidEnumArgumentException(HighDpiMode value)
TrimTest (1)
Program.cs (1)
14Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
TrimTestBinaryDeserialization (1)
Program.cs (1)
15Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);