dotnet / dotnet/winforms

[HDPI] DataTimePicker control is not scale well on 300% DPI

Open
#8,685 1 comment 0 reactions 0 assignees View on GitHub
area-HDPI
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

.NET 8.0.100-preview.2.23123.5

### Did it work in .NET Framework?

Yes

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

No, it also repro on .NET 6.0 & 7.0.

### Issue description

**Actual result:**
DataTimePicker control is not scaled well.
![bad](https://user-images.githubusercontent.com/94418985/221108739-1639b3e2-528c-490b-8816-96dacee48619.png)

**Expected result:**
DataTimePicker control should scaled well, here is the behavior of adding DataTimePicker control directly on 300% DPI:
![good](https://user-images.githubusercontent.com/94418985/221108723-848b480e-bd06-4cdb-a70e-a41e8a77e643.png)

### Steps to reproduce

1. Launch VS instance on 100% DPI.
2. Create a winforms .net core project with a DataTimePicker control.
3. Close VS and change DPI to 300% and reopen project.
4. Build and run, observe the DataTimePicker control.

**More Info:**

1. This issue repro on PerMonitorV2 and SystemAware mode, not repro on DpiUnware mode.
2. This issue also repro on .NET7.0, .NET6.0.
3. This issue not repro on framework project.

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.