dotnet / dotnet/winforms

[HDPI] The form Icon for child form with maximize state in MDIParent form is very small when running on 300% DPI

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

Description

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

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

**Problem description:**

The form Icon for child form with maximize state in MDIParent form is very small when running on 300% DPI.
![300](https://user-images.githubusercontent.com/45864985/122026168-93cbed00-cdfc-11eb-95dc-8623235bb074.png)

**Expected behavior:**

The form Icon should like it works on 100% DPI.
![Move-300-to-100](https://user-images.githubusercontent.com/45864985/122026183-962e4700-cdfc-11eb-8d0d-4a35a924f749.png)

**Minimal repro:**

1. Set the primary screen as 300% DPI, and second screenshot as 100% DPI.
2. Open and run the [TestApp5.zip](https://github.com/dotnet/winforms/files/6654367/TestApp5.zip) on the 300% primary screen.
3. Observe the form Icon for child form.

**More info:**

1. Can repro in 2 DPI modes: PerMonitorV2/SystemAware for MDI form's AutoScaleMode: Font/DPI.
2. Also repro in without privates.

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.