You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HDPI] Cursor editor in propertyGrid is not scaled well #9007
@dreddy-work this is probably something we need to see what CSWin32 might have impacted. There's a suspicious looking one about Convert Cursor PInvokes to CSWin32. Let's get this on the backlog, but it's not a drop everything kind of issue 😄 .
@dreddy-work I corrected a PR build result about commit "984e8ec2", it was built successfully, and for previous PRs from commit "bc73fc27", they are built failed with following error info:
It's probably most efficient to just test the CursorEditor.CursorUI directly to see what its behavior is. Creating an instance and invoking Start with a stubbed out IWindowsFormsEditorService is all you need to do before using it in a Form as a standard ListBox.
Verified the issue with .NET SDK 11.0.100-alpha.1.25609.108, the issue has been fixed that the Cursor scaled well for now in propertyGrid for now, but Application crashes when resizing the Cursor editor in PropertyGrid, Filed GH RT issue 14122 to track
Activity
dreddy-work commentedon Apr 21, 2023
@Olina-Zhang, can you see which preview in 8.0 introduced this? or better yet, which PR?
Olina-Zhang commentedon Apr 23, 2023
Verified that it also repro in .Net 8.0 Preview1. But verified PR met some issue: Some earlier PRs, build failures.

merriemcgaw commentedon Apr 25, 2023
@dreddy-work this is probably something we need to see what CSWin32 might have impacted. There's a suspicious looking one about Convert Cursor PInvokes to CSWin32. Let's get this on the backlog, but it's not a drop everything kind of issue 😄 .
dreddy-work commentedon May 5, 2023
@Olina-Zhang, what kind of compile issues you see? can you share details? may be on Teams.
Olina-Zhang commentedon May 6, 2023
@dreddy-work I corrected a PR build result about commit "984e8ec2", it was built successfully, and for previous PRs from commit "bc73fc27", they are built failed with following error info:
merriemcgaw commentedon Jul 27, 2023
@dreddy-work getting this one back on your radar as a .NET 8 regression
JeremyKuhne commentedon Aug 15, 2023
It's probably most efficient to just test the
CursorEditor.CursorUIdirectly to see what its behavior is. Creating an instance and invokingStartwith a stubbed outIWindowsFormsEditorServiceis all you need to do before using it in a Form as a standard ListBox.7 remaining items
LeafShi1 commentedon Aug 27, 2025
Cursor scaling is also incorrect in .net7.0,the width of the icon when it is drawn is hardcoded
winforms/src/System.Windows.Forms.Design/src/System/Drawing/Design/CursorEditor.CursorUI.cs
Line 69 in 3774d9f
The drawing logic on Net Framework is as follows:
var cursorWidth = primaryToCurrentFactor != 1.0 ? DpiHelper.ConvertToGivenDpiPixel(cursor.Size.Width, primaryToCurrentFactor) : cursor.Size.WidthScale the Cursor editor according to DPI (dotnet#13830)
Zheng-Li01 commentedon Dec 11, 2025
Verified the issue with .NET SDK 11.0.100-alpha.1.25609.108, the issue has been fixed that the Cursor scaled well for now in propertyGrid for now, but Application crashes when resizing the Cursor editor in PropertyGrid, Filed GH RT issue 14122 to track
Video.Project.mp4