dotnet / dotnet/winforms

ContextMenuStrip doesn't scale well for its menu item's checked icon.

Open
#9,258 9 comments 1 reaction 0 assignees View on GitHub
area-HDPI
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### Environment

Visual Studio 2022 17.2.6

### .NET version

.NET6.0

### Did this work in a previous version of Visual Studio and/or previous .NET release?

have not tested any previous version

### Issue description

200% dpi, 4k screen
a demo, only have two controls: ContextMenuStrip and MenuStrip, add random menuitem for them.
The issue is that the vertical panel is too narrow for the checked icon in ContextMenuStrip, as a contrast, the MenuStrip is normal.
![image](https://github.com/dotnet/winforms/assets/6090982/b6754651-3284-43cd-9d19-322407b63b12)
![image](https://github.com/dotnet/winforms/assets/6090982/732d296a-cc48-447d-a636-9020d121f656)

### Steps to reproduce

1. create a WinForm app.
2. add a ContextMenuStrip control and a MenuStrip control from toolbox
3. add some menu item for them
4. set check state of one menu item to true
5. run app

### Diagnostics

_No response_

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.