winforms icon indicating copy to clipboard operation
winforms copied to clipboard

WinForms Controls Rendering Issue with Dynamic System Scale Changes at Runtime

Open ManiAkash9 opened this issue 1 year ago • 0 comments

.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%

  • Add a button to the form designer in a WinForms application.
  • Run the application.
  • While the application is running in the background, change the system scale to 125%.
  • Observe that the button is not rendered correctly after the scale change.

ManiAkash9 avatar Oct 23 '24 13:10 ManiAkash9