dotnet / dotnet/winforms

ByteViewer is not DPI-aware

Open
#13,219 2 comments 0 reactions 0 assignees View on GitHub
area-HDPI
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

9.0.3

### Did it work in .NET Framework?

Not tested/verified

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

_No response_

### Issue description

When using 150% windows scaling, the font renders bigger in ByteViewer, but the actual offsets and borders remain the same, so it draws on top of each other.

![Image](https://github.com/user-attachments/assets/dd2d9d7b-450e-4cee-ac64-ad3bb6dbf516)

### Steps to reproduce

```csharp
new System.ComponentModel.Design.ByteViewer
{
Dock = DockStyle.Fill,
};
```

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.