dotnet / dotnet/winforms

[Multi-Monitor] The focusing for TrackBar is not scaled well when DPIs differ

Open
#5,099 0 comments 0 reactions 0 assignees View on GitHub
:beetle: bug area-HDPI-PMv2
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* More info
The issue also can reproduce on when setting the primary screen as 100% DPI, and secondary screen 300% DPI.

* .NET Core Version:
.NET 6.0.100-preview.6.21313.2 + private binaries build from main branch in dotnet/winforms repo [New.zip](https://github.com/dotnet/winforms/files/6653375/New.zip)

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

**Expected behavior:**
The focusing for TrackBar is scaled well when DPIs differ

**Minimal repro:**
1. Set the primary screen as 300% DPI, and secondary screen 100% DPI.
2. Open the attached the application. [Issue32.zip](https://github.com/dotnet/winforms/files/6653383/Issue32.zip)
4. Build & run the application.
5. Moving the form from 100% primary screen to 300% secondary screen.

**Actual Results:**
300% primary screen:
![image](https://user-images.githubusercontent.com/38325459/122004978-ee683900-cd69-11eb-9208-a463e9e8f84e.png)
Move to 100% secondary screen:
![image](https://user-images.githubusercontent.com/38325459/122005000-f627dd80-cd69-11eb-9e1f-2f11d80e8b7f.png)

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.