dotnet / dotnet/winforms

[Multi-Monitor] The spinner buttons of DomainUpDown/NumericUpDown controls are not scaled well when DPIs differ

Open
#5,104 0 comments 0 reactions 0 assignees View on GitHub
:beetle: bug area-HDPI-SA
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* .NET Core Version:
.NET SDK 6.0.100-preview.6.21313.2 + private binaries build from main branch in dotnet/winforms repo [Private dlls.zip](https://github.com/dotnet/winforms/files/6654255/Private.dlls.zip)

* Have you experienced this same bug with .NET Framework?:
No

**Problem description:**

The spinner buttons of DomainUpDown/NumericUpDown controls are not scaled well.
![Move-300-to-100](https://user-images.githubusercontent.com/45864985/122024607-2b304080-cdfb-11eb-841e-122fe874c451.png)

**Expected behavior:**

The spinner buttons of DomainUpDown/NumericUpDown controls should be scaled well.
![300](https://user-images.githubusercontent.com/45864985/122024615-2cfa0400-cdfb-11eb-87f3-dbda11669bb2.png)

**Minimal repro:**

1. Set the primary screen as 300% DPI, and second screenshot as 100% DPI.
2. Open and run the [TestApp2.zip](https://github.com/dotnet/winforms/files/6654269/TestApp2.zip) on the 300% primary screen.
3. Move form to 100% DPI second screen, and observe the spinner buttons in DomainUpDown/NumericUpDown controls.

**More info:**

1. Just repro in PerMonitorV2 mode with Form's AutoScaleMode: Font/DPI.
2. Cannot repro in SystemAware mode, since this issue is in secondary screen.
3. Also repro in without privates, but it's a different not scaled well issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.