From 1c615e7b6eb2d74fd610da0030148c0ce2081d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sun, 21 Jul 2024 16:41:39 +0200 Subject: [PATCH] Update the WinForms sample to support High DPI --- samples/Sorgan/Sorgan.WinForms.Client/Program.cs | 2 ++ .../Sorgan/Sorgan.WinForms.Client/Sorgan.WinForms.Client.csproj | 1 + 2 files changed, 3 insertions(+) diff --git a/samples/Sorgan/Sorgan.WinForms.Client/Program.cs b/samples/Sorgan/Sorgan.WinForms.Client/Program.cs index 15c32e71..ffa9e77c 100644 --- a/samples/Sorgan/Sorgan.WinForms.Client/Program.cs +++ b/samples/Sorgan/Sorgan.WinForms.Client/Program.cs @@ -6,6 +6,8 @@ using Microsoft.Extensions.Logging; using Sorgan.WinForms.Client; +ApplicationConfiguration.Initialize(); + var host = new HostBuilder() // Note: applications for which a single instance is preferred can reference // the Dapplo.Microsoft.Extensions.Hosting.AppServices package and call this diff --git a/samples/Sorgan/Sorgan.WinForms.Client/Sorgan.WinForms.Client.csproj b/samples/Sorgan/Sorgan.WinForms.Client/Sorgan.WinForms.Client.csproj index 0782ff42..152dbded 100644 --- a/samples/Sorgan/Sorgan.WinForms.Client/Sorgan.WinForms.Client.csproj +++ b/samples/Sorgan/Sorgan.WinForms.Client/Sorgan.WinForms.Client.csproj @@ -5,6 +5,7 @@ $(NetCoreWindowsTargetFramework) true true + PerMonitorV2