The forms are cut for me using high resolution on WinForm

  • Thread starter Thread starter GMS-Tech
  • Start date Start date
G

GMS-Tech

Guest
I got a new laptop with very high resolution. I increased the size text, apps and other to 150%

i work on WinForm program using Visual-Studio 2019.

All the forms in my program are cut and everything goes wrong on the screen.

i try this:

app.manifest

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 compatibility -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>

app.config

<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
<add key="EnableWindowsFormsHighDpiAutoResizing" value="false" />
</System.Windows.Forms.ApplicationConfigurationSection>

i work on .NET Framework 4.7.2

i also try this:

High DPI support - Windows Forms .NET Framework

and also this on the main of every form: (Each time something different)

this.AutoScaleMode = AutoScaleMode.Font;
this.AutoScaleMode = AutoScaleMode.Dpi;
this.AutoScaleMode = AutoScaleMode.None;

I have already tried everything .... and nothing helps. any idea ?

thanks

Continue reading...
 
Back
Top