dotnet / dotnet/winforms

[DpiUnaware] The ListBox and CheckedListBox controls are not scaled well on 300% system DPI

Open
#6,227 0 comments 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 Core Version:
.NET SDK 7.0.100-alpha.1.21568.2

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

**Problem description:**

The ListBox and CheckedListBox controls are not scaled well on 300% system DPI.
![Actual](https://user-images.githubusercontent.com/45864985/143395433-9ab982d8-d324-4776-b007-ad5995c9b444.png)

**Expected behavior:**

The ListBox and CheckedListBox controls should be scaled well on 300% system DPI.
![Expected](https://user-images.githubusercontent.com/45864985/143395439-fc216925-7a61-4e6f-b3c8-5708b3914cd8.png)

**Minimal repro:**

1. Open the [TestApp.zip](https://github.com/dotnet/winforms/files/7600905/TestApp.zip) on 300% DPI.
2. Change the ApplicationHighDpiMode to DpiUnAware in .csproj file, set AutoScaleMode = Font and font size from 9 to 10 for Form1 designer.
3. Run it.

![ReproSteps](https://user-images.githubusercontent.com/45864985/143395469-a3509271-d6c3-4654-afc1-127c9114e5cb.gif)

**More info:**

1. This issue cannot repro under DpiUnAware & AutoScaleMode = dpi or none
2. This issue doesn't reproduce under PerMonitorV2 and SystemAware modes.

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.