Rendering problem of WinForms checkbox in DPI aware Win10 application

Helfe beim Thema Rendering problem of WinForms checkbox in DPI aware Win10 application in Windows 10 Support um eine Lösung zu finden; This is a crosspost from... Dieses Thema im Forum "Windows 10 Support" wurde erstellt von Wolfgang Knauf, 15. September 2016.

  1. Wolfgang Knauf
    Wolfgang Knauf Gast

    Rendering problem of WinForms checkbox in DPI aware Win10 application


    This is a crosspost from https://connect.microsoft.com/VisualStudio/feedback/details/3100708/rendering-problem-of-winforms-checkbox-in-dpi-aware-application, as MS support told me to ask the question in the forums for workarounds. I am not sure whether I am at the correct place here, because I don't find a matching category.


    I try to add Win 10 DPI awareness to our application, following the code sample found here: https://emoacht.wordpress.com/2013/10/30/per-monitor-dpi-aware-in-windows-forms/


    If you start the sample program from this website on a screen with 100% scale and move it to a screen with 200% scale, the checkbox glyphs still have their size of 13 pixel. See attached screenshot.

    My only modification to the sample: I added this to the "app.config" file:

    <appSettings>
    <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
    </appSettings>


    The cause seems to be hidden in "CheckboxRenderer.GetGlyphSize", which calls "VisualStyleRenderer.GetPartSize". Either this method has a problem or the call to the native method "GetThemePartSize" causes the problem. The DPI of the current display is not checked.


    Response from MS support: We are able to reproduce this issue and are looking into HDPI improvements in a future release.


    But does anybody have a workaround for this?


    Best regards


    Wolfgang

    Weiterlesen...
     
    #1 Wolfgang Knauf, 15. September 2016
  2. Hobi Expert
    Willkommen,

    Klicke die folgenden Schritte durch:
Thema:

Rendering problem of WinForms checkbox in DPI aware Win10 application

Die Seite wird geladen...

Rendering problem of WinForms checkbox in DPI aware Win10 application - Ähnliche Themen - Rendering problem WinForms

Forum Datum

Checkboxen können im Tabletmodus nicht deaktiviert werden

Checkboxen können im Tabletmodus nicht deaktiviert werden: Hallo,ich habe ein Problem mit dem Windows Explorer.Denn jedes mal wenn ich mein Convertible-Laptop in den Tabletmodus setze d.h. den Laptop umklappe, werden im Explorer diese Checkboxen angezeigt.Nachdem ich aber ein Freund von "sauberen" ansichten bin, stört mich das extrem.Wenn ich den...

Windows 10 Insider 25. Februar 2024

Error out of memory trying to allocate a rendering resource?

Error out of memory trying to allocate a rendering resource?: Hallo, ich wollte gerade Satisfactory spielen und als ich es gestartet habe, kam dieser Error Error out of memory trying to allocate a rendering resourceWie kann ich diesen beheben? Ich habe Windows 10 auf einem Laptop mit 8 GB RAM...

Windows 10 Support 20. Februar 2023

Davinci Resolve Rendering Fehler?

Davinci Resolve Rendering Fehler?: [ATTACH] Der Clip IST 100% AUF DEM PC VORHANDEN! Ich habe nachgeschaut. Trotzdem, jedes mal kommt diese Meldung. https://www.gutefrage.net/frage/davinci-resolve-rendering-fehler

Windows 10 Support 24. Februar 2022

Application Hang

Application Hang: Hello dear community,I have a problem with a videogame on Windows 10 and asking around this community.PROBLEM:When I play World of Warcraft, than it could be, that the client suddenly go down.Is that a general problem or is it just by me?!MfGSascha Weiterlesen...

Windows 10 Support 29. Juni 2021

Installation einer Application unter Win10 Home

Installation einer Application unter Win10 Home: Ich möchte eine Application (exe-Datei) installieren und werde blockiert, weil meine Sicherheitseinstellungen die Installation nicht zulassen würden. Ich soll den Administrator fragen. Ich bin der Administrator. Welche Einstellungen verhindern die Installation. Die war vor 6 Monaten übrigens mit...

Windows 10 Support 14. September 2018

Meine Checkboxes sind nur noch schwarze Quadrate

Meine Checkboxes sind nur noch schwarze Quadrate: Hallo, zuerst mal Gruß an alle, ich bin neu hier. Mein Problem: Meine Checkboxes (Auswahlkästchen) sind einfach nur kleine schwarze Quadrate und lassen sich nicht anklicken. Das Problem habe ich erst seit Kurzem, leider kann ich es nicht mit einem Ereignis fest machen. PC WIN 10, alle...

Windows 10 Support 5. Juli 2018

Problem WIN10

Problem WIN10: Hallo zusammen, Habe folgendes Problem. Habe WIN10 PRO 64 Bit installiert. jetzt ist mein Problem das ich ein wichtiges Programm brauche das aber nur von 32 Bit unterstützt wird. Gibt es irgend eine Möglichkeit doch dieses Program zu installieren. Danke für eure Hilfe. Gruß Jürgen...

Windows 10 Support 4. Oktober 2016

Preview Handler in C# Winforms

Preview Handler in C# Winforms: Recently, I have been trying to show a preview for .html, .txt, and .jpg files in my winforms application. I have found the Registry entries under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers. The Windows TXT Previewer and Microsoft Windows Mail HTML Preview...

Windows 10 Support 2. Dezember 2015

Rendering problem of WinForms checkbox in DPI aware Win10 application [gelöst]

  1. Diese Seite verwendet Cookies. Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.
    Auf dieser Website werden Cookies für die Zugriffsanalyse und Anzeigenmessung verwendet.
    Information ausblenden