dotnet / dotnet/winforms

[Multi-Monitor] ToolStripButtons in PrintPreviewDialog are not scaled well when DPIs differ

Open
#5,095 0 comments 0 reactions 0 assignees View on GitHub
:beetle: bug area-controls-StripControls area-HDPI-SA
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 300% DPI, and secondary screen 100% 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/6653242/New.zip)

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

**Expected behavior:**
ToolStripButtons in PrintPreviewDialog are scaled well when DPIs differ.

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

**Actual Results:**
100% primary screen:
![image](https://user-images.githubusercontent.com/38325459/122002434-967c0300-cd66-11eb-8efe-ae090a5b796e.png)
Move to 300% secondary screen:
![image](https://user-images.githubusercontent.com/38325459/122002604-d216cd00-cd66-11eb-934c-51950db92ded.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.