dotnet / dotnet/winforms

[HDPI] TextBox shrinks when running application on 300% DPI

Open
#5,112 6 comments 0 reactions 0 assignees View on GitHub
area-HDPI-SA
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

* Have you experienced this same bug with .NET Framework?:
Yes, there have a VSO bug to track: [549652](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/549652)

**Problem description:**
TextBox shrinks after running application on 300% DPI.
![image](https://user-images.githubusercontent.com/38325459/122181248-c5f05400-cebb-11eb-81af-341129ae35bb.png)

**Expected behavior:**
TextBox was scaled well when running application on 300% DPI.

**Minimal repro:**
1. Set Windows DPI as 300%,.
2. Open the attached application.
[WinFormsApp3.zip](https://github.com/dotnet/winforms/files/6661276/WinFormsApp3.zip)
3. Build and run it.
4. Observe the size of TextBox.

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.