dotnet / dotnet/winforms

.NET8 PerMonitorV2 issue with TableLayoutPanel, NumericUpDown and Label

Open
#10,310 5 comments 0 reactions 0 assignees View on GitHub
area-HDPI-PMv2
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

.NET8.0

### Did it work in .NET Framework?

No

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

No

### Issue description

Demo program TestDpiV2 with one TableLayoutPanel and many Label, TextBox, NumericUpDown anchored controls:
[TestDpiV2.zip](https://github.com/dotnet/winforms/files/13364120/TestDpiV2.zip)

DPI = 100%
![TestDpiV2_100](https://github.com/dotnet/winforms/assets/28147549/e1f1d7aa-fe1a-4f51-9287-082841eb6183)

DPI = 150%
![TestDpiV2_150](https://github.com/dotnet/winforms/assets/28147549/5d0f82ef-c938-479d-8f5d-6d642a8ee453)
With DPI = 150% one can see that the Label "Tooltip Description" is only shown as "Tooltip". All NumericUpDown controls are misaligned.

Here one can see a more complex application (RibbonTools):
DPI = 100%
![RibbonTools_100](https://github.com/dotnet/winforms/assets/28147549/5568a13b-f52d-487c-81fb-d33d7d5330a4)

DPI= 125%
![RibbonTools_125](https://github.com/dotnet/winforms/assets/28147549/f321791a-5b63-4d10-843e-8d6bb4ae710d)

### Steps to reproduce

Use this project and set different DPI for the screen.
[TestDpiV2.zip](https://github.com/dotnet/winforms/files/13364120/TestDpiV2.zip)

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.