-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
.NET version
10.0.201
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, 8.0.415
Issue description
We have migrated from .NET 8 to .NET 10.
I noticed that copying and pasting controls in the Forms Designer no longer works.
The problem seems to be that the dragClient boolean always remains false.
winforms/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/CommandSet.cs
Line 1905 in 065dd5f
| bool dragClient = false; |
From what I can tell, it's a bug from 5978f22
Either you set the boolean correctly
winforms/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/CommandSet.cs
Line 1918 in 065dd5f
| designer = oleDragClient; |
or change the if (dragClient) to if (designer != null)
winforms/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/CommandSet.cs
Line 1976 in 065dd5f
| if (dragClient) |
Steps to reproduce
A local build with ‘dragClient = true;’ on line 1925 fixes the bug.
I don't think an explicit example is necessary.