[Multi-Monitor] The Height of currentDPILabel's size has a little change when DPIs differ
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 85
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/6654027/Private.dlls.zip)
* Have you experienced this same bug with .NET Framework?:
No
**Problem description:**
The Height of currentDPILabel's size has a little change after moved form from 300% primary screen to 100% secondary screen.
Open on 300% primary screen.

Moved to 100% secondary screen.

**Expected behavior:**
The Height of currentDPILabel's size should be same with the without private dlls result after moved form from 300% primary screen to 100% secondary screen.
Open on 300% primary screen.

Moved to 100% secondary screen.

**Minimal repro:**
1. Set the primary screen as 300% DPI, and second screenshot as 100% DPI.
2. Open and run the test app [PerMonitorHDPCore.zip](https://github.com/dotnet/winforms/files/6654080/PerMonitorHDPCore.zip) on the 300% primary screen.
3. Move the **PerMonitor Demo1** form to 100% DPI second screen, and check the Height value of currentDPILabel's size.
**More info:**
1. Just repro in PerMonitorV2 mode with Form's AutoScaleMode: Font, cannot repro Form's AutoScaleMode: DPI.
2. Cannot repro in SystemAware mode, since this issue is in secondary screen.
3. Cannot repro in without privates.
Contributor guide
Assessment
This issue has not been assessed yet.