ContextMenuStrip doesn’t DPI-scale its items properly
See original GitHub issue.NET Core Version
6.0.0-preview.3.21201.4
Have you experienced this same bug with .NET Framework? Didn’t bother to check; I no longer target .NET Framework
Problem description
The below screenshot illustrates the problem much better than words can. The left menu is the ContextMenuStrip
; the right menu is a ToolStripMenuDropDown
.
Expected behavior
All menu items should have the same height, no matter what kind of container they are located in.
Minimal repro

Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
ContextMenuStrip doesn't DPI scale when Form is dragged ...
The ContextMenuStrip doesn't scale when its parent Form is dragged between monitors of different resolution/scaling. The ContextMenuStrip is ...
Read more >Newest 'contextmenustrip' Questions
ContextMenuStrip doesn't DPI scale when Form is dragged between monitors with different resolution/scaling (WinForms, .
Read more >ContextMenuStrip Class (System.Windows.Forms)
Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. (Inherited from...
Read more >How to disable default contect menu while in editmode
The easiest thing to do would be to set the ContextMenu on the grid control in the MouseMove or MouseDown events. You don't...
Read more >TreeList Control (Experimental) - AutoHotkey Community
It doesn't crash for me after updating those but the control doesn't seem to properly get items added to it still. It appears...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
IsHandleCreated
is always false forContextMenuStrip
.I created a repro and found out that the main problem causes
ToolStripItem.AutoSize
property set tofalse
. WithAutoSize
set totrue
menu items are resized correctly. However they still show wrongDeviceDpi
and everything should be resized correctly with anyAutoSize
value.ContextMenuStripDpiChangedTest.zip
@wjk, seems two different issues were discussed in this thread and one of them doesn’t repro with lates. Please reactivate if you still see the issue with lates .NET 8.0 bits…