winforms
winforms copied to clipboard
Application crashes when resizing the Cursor editor in PropertyGrid
.NET version
.NET 11 with build 11.0.100-alpha.1.25608.106
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, it doesn't repro in .NET 8.0/9.0/10.0
Issue description
When using a PropertyGrid to edit properties of type Cursor, resizing the Cursor UITypeEditor drop-down window causes the application to stop responding or crash. Regression introduced by GH PR: https://github.com/dotnet/winforms/pull/13830.
https://github.com/user-attachments/assets/99575f6d-244d-44da-9166-af0b6295fc47
Steps to reproduce
- Create a WinForms application with a propertyGrid and button added
- Assign button to propertyGrid's SelectedObject property.
- Build and run app
- Open the Cursor editor drop-down, resize the drop-down window by dragging its corner.