Visual Inconsistency in MS Form While Zooming in the resolution 150%
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 85
Description
### **Description**
When running a basic Windows Forms application on a display with 125% or 150% DPI scaling, the form's border renders as three horizontal lines of varying thickness. This creates a visual inconsistency and makes it difficult to identify the actual form boundary.
### **Screenshots**
* 150% Scaling:
* 125% Scaling:
### Steps to Reproduce
1.Create a basic WinForms application (no custom styling or overrides).
2.Run the app on a display with 125% or 150% DPI scaling.
3.Observe the top border of the form.
4.For exaggerated results, test with 500% scaling.
### Actual Behavior
* The top border appears as three horizontal lines:
* First line: light and thin
* Second line: noticeably thicker
* Third line: thickest
* This layered rendering causes confusion about the true form boundary.
### Expected Behavior
The form border should render as a single, solid line, regardless of DPI scaling.
### Questions
* Is this a known rendering issue in WinForms on high DPI displays?
* Does it impact usability or accessibility?
* Are there any recommended workarounds or fixes?
### Environment
.NET Framework / .NET - .NET Framework
Windows Version - 11
Display Scaling - 125%, 150%, 500% (test)
Custom Styling - None
Additional Notes
No custom drawing or styling is applied.
Issue persists across multiple scaling levels.
Contributor guide
Assessment
This issue has not been assessed yet.