diff options
| author | SmallFox <2806143047@qq.com> | 2026-04-08 15:02:49 +0800 |
|---|---|---|
| committer | SmallFox <2806143047@qq.com> | 2026-04-08 15:02:49 +0800 |
| commit | a4f2ef9fc0d3d5b941a982b265c68faad682f2d5 (patch) | |
| tree | 5d4e44fd638c31efc30f0ad605fcd5de4030c9a3 /NotePad | |
| parent | 2eb16b22f8bb9e08fc690be09ab92b29f4911d3d (diff) | |
| parent | 00c5ce748b56c672d2f4e796d3f0b263200f95f8 (diff) | |
Diffstat (limited to 'NotePad')
| -rw-r--r-- | NotePad/NotePad/Program.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/NotePad/NotePad/Program.cs b/NotePad/NotePad/Program.cs index c1e3d1e..0f5f1bb 100644 --- a/NotePad/NotePad/Program.cs +++ b/NotePad/NotePad/Program.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using System.Windows.Forms; namespace NotePad @@ -14,7 +11,9 @@ namespace NotePad [STAThread] static void Main() { +#if NETFRAMEWORK || NETCOREAPP Application.SetHighDpiMode(HighDpiMode.SystemAware); +#endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new NotePad()); |
