dotnet / dotnet/winforms

[HDPI]The dotted line between the checkbox and expand/collapse of the TreeView control disappears in HDPI mode

Open
#12,680 3 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 version

.NET SDK 10.0.100-alpha.1.24623.3

### Did it work in .NET Framework?

Yes

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

Can reproduce all previous versions

### Issue description

**Actually Results:**
The dot line disappeared between checkbox and Expand/collapse in HDPI mode
![Image](https://github.com/user-attachments/assets/4bb10f90-cdd9-4db7-b695-96220ea98550)

**Expected Results:**
The dot line display well between checkbox and Expand/collapse in HDPI mode
![Image](https://github.com/user-attachments/assets/aec3fc37-4a26-429c-bb4e-8047574f5cf5)

### Steps to reproduce

1. Setting the machine as High DPI: 250%
2. Build & run application[SystemAware.zip](https://github.com/user-attachments/files/18242441/SystemAware.zip)
3. Click the ChecBox = True & OwnerDrawText button
4. Observe the dot line between checkbox and Expand/collapse

**More info:**
1. There has a similar issue [5097](https://github.com/dotnet/winforms/issues/5097) in Multi-Monitor mode.

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.