79755542

Date: 2025-09-04 09:53:37
Score: 1.5
Natty:
Report link

I was able to fix the issue by using System.Windows.Forms.Clipboard instead of System.Windows.Clipboard.

Explanation:

System.Windows.Clipboard uses WPF. Its first usage will start a hidden WPF message loop. This loop marks the application as DPI-aware and triggers a DPI awareness context switch. As a result, the window layout breaks if the application cannot handle higher DPI settings.
To reproduce the behavior, a Windows DPI setting above 100% is required (e.g., 150%).

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: user31418697