Skip to content

Up/Down buttons of the DomainUpDown/NumericUpDown control scale incorrectly at different DPI #14784

Description

@LeafShi1

.NET version

11.0.0-preview.7.26365.101

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No

Issue description

When launching the application on a primary monitor set to 175% scaling and then changing the System Scale parameter to 100%, the "Up" and "Down" buttons—which were expected to scale down—actually became larger.
Conversely, when changing the scaling to 250%, the "Up" and "Down" buttons—which were expected to scale up—actually became smaller.

  • The same issue occurs when moving the application between screens with different DPI settings.
  • Everything works correctly in Classic mode.
  • The display returns to normal after restarting the app.
Recording.2026-07-20.021407.mp4

Steps to reproduce

  1. Create a WinForms application targeting .NET 11
  2. Set VisualStylesMode = VisualStylesMode.Net11
  3. Add a DomainUpDown
  4. Run the app in main screen(150%)
  5. Change the system -> Display-> Scale to 100%
  6. Change the system -> Display-> Scale to 250%

Activity

  1. added
    untriaged
    on Jul 20, 2026
  2. added
    🪲 bug
    NewApi-Net11
    and removed
    untriaged
    on Jul 20, 2026
  3. KlausLoeffelmann commented on Jul 20, 2026

    @KlausLoeffelmann
    Member

    Good catch!

  4. changed the title [-][VisualStylesMode: Net11] The Up and Down buttons of the DomainUpDown and NumericUpDown control scale incorrectly at different DPI[/-] [+]Up/Down buttons of the DomainUpDown/NumericUpDown control scale incorrectly at different DPI[/+] on Jul 21, 2026
  5. self-assigned this
    on Aug 18, 2026
  6. Olina-Zhang commented on Sep 16, 2026

    @Olina-Zhang
    Member

    Still repro in .NET 11 RC2 build + integration/11.0-RC2 branch of Winforms repo environment
    100%->200%

    Image
  7. deleted a comment from SimonZhao888 on Oct 14, 2026
  8. Olina-Zhang commented on Nov 12, 2026

    @Olina-Zhang
    Member

    Verified it in the latest .NET 12 build: 12.0.100-alpha.1.26560.109 + dlls built from Winforms repo, this issue was fixed:
    200%DPI ->100%DPI:

    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🪲 bugNewApi-Net11

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions