ChildMdi inactive (not visible) TabPages do not render properly on HDPI change
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
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) inactive (not visible) TabPages do not render properly when moved from a 100% to 150% monitor.
Run the project and click MdiParent - Simple Layout on the 100% monitor
Drag the MdiParent to the 150% monitor. The inactive (not visible) tabPage2 and tabPage3 controls do not render properly. On tabPage2 the groupBox2 and groupBox3 are cut off on the bottom. On tabPage3, the ListView on tabPage4 is much shorter and should have gone to the bottom of the tab page.

If you start on the 100% monitor with tabPage2 visible, then move to the 150% monitor, tabPage2 renders correctly.

If you start on the 100% monitor with tabPage3 visible, then move to the 150% monitor, tabPage3 renders correctly.

If you use SimpleForm (not MdiParent), the inactive tabs render properly

[PerMonitorHDPICore - NET 7.0.zip](https://github.com/dotnet/winforms/files/7652835/PerMonitorHDPICore.-.NET.7.0.zip)
Contributor guide
Assessment
This issue has not been assessed yet.