dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.4k stars 977 forks source link

WinForms Controls Rendering Issue with Dynamic System Scale Changes at Runtime #12378

Open ManiAkash9 opened 1 day ago

ManiAkash9 commented 1 day ago

.NET version

.NET CORE 80 .NET Framework 4.8

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Did not checked

Issue description

In a WinForms application, controls such as buttons and checkboxes do not render correctly when the system scale is adjusted at runtime. This issue occurs intermittently and is challenging to reproduce consistently.

Video reference is attached

https://github.com/user-attachments/assets/217bd820-d9fc-4218-b974-7cdb5299b426

Steps to reproduce

System Resolution: 1366x768 Scale: 100%

JeremyKuhne commented 1 day ago

@Olina-Zhang can you reproduce this behavior?

Philip-Wang01 commented 14 hours ago

@JeremyKuhne We have only reproduced it twice in as many attempts. This issue has a very low reproduction rate and is difficult to reproduce consistently. Image