locked
The forms are cut for me using high resolution on WinForm RRS feed

  • Question

  • 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:

    https://docs.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms?view=netframeworkdesktop-4.8

    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

    • Moved by CoolDadTx Friday, September 18, 2020 1:42 PM Winforms related
    Friday, September 18, 2020 11:48 AM

All replies

  • This forum is for C#-specific questions only. Please post questions related to Windows Forms in the new Microsoft Q&A forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, September 18, 2020 1:36 PM