dotnet / dotnet/winforms

Visual Inconsistency in MS Form While Zooming in the resolution 150%

Open
#13,977 4 comments 0 reactions 0 assignees View on GitHub
area-HDPI-SA
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:

Image

Image


* 125% Scaling:

Image

Image

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.