dotnet / dotnet/winforms

ChildMdi Container control rendering issues when Maximized

Open
#6,260 0 comments 0 reactions 0 assignees View on GitHub
area-HDPI-SA area-MDI blocking-migration
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

.NET Core Version:
dotnet-sdk-7.0.100-alpha.1.21568.2-win-x64

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

**Issue:** When moving an MdiParent to a higher DPI monitor, the ChildMdi (Maximized) TabControl on the bottom becomes slightly narrower and slightly shorter after multiple moves.

Run the project and click MdiParent - Simple Layout on the 100% monitor
Drag the MdiParent to the 150% monitor. The Width = 674 and the Height = 267 as displayed in the text box inside the tab control. After moving it to the 100% monitor and back again, the size becomes 672x256. After doing this again, it becomes 671x246. Also, the list view inside groupBox4 shrinks in height. This issue does not occur when running the form via Simple Layout (Not MdiParent).
![ChildMDI Maximized](https://user-images.githubusercontent.com/2184698/144530907-95966341-9117-4707-806a-23327456e790.gif)
[PerMonitorHDPICore - NET 7.0.zip](https://github.com/dotnet/winforms/files/7646207/PerMonitorHDPICore.-.NET.7.0.zip)

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.