-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
💥 regression-previewRegression from a preview releaseRegression from a preview release
Milestone
Description
.NET version
.NET 9.0 SDK build: 9.0-rc 1.24407.28
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, this is a regression issue. Not reproduce on .NET 8.0
Issue description
The DrapDropEffects can be observe from the cursor icon. When drag the control from the label to the listBox it display incorrectly in .NET 9.0.
Steps to reproduce
- Create a WinForms .NET Core project
- Add a label and listBox to the form
- Set the allowDrop property for both control to True
- Link the events for the controls as below
private void label1_MouseDown(object sender, MouseEventArgs e)
{
label1.DoDragDrop(label1.Text, DragDropEffects.Copy | DragDropEffects.Move);
}
private void listBox1_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}
private void listBox1_DragDrop(object sender, DragEventArgs e)
{
listBox1.Items.Add(e.Data.GetData(DataFormats.Text).ToString());
}
- Build and run the project
- Try to drag the label to the listBox and observe the change of cursor icon
IrinaPykhova
Metadata
Metadata
Assignees
Labels
💥 regression-previewRegression from a preview releaseRegression from a preview release

