I have to create a listview with draggable items. I found a solution in codeproject
That's the best code found over net. Now I need to change the drag cursoe to sizeAll.
Is there any ways to change the default dragging cursor?
I downloaded the program you linked to.
To achieve what you want add this in ListViewDragDropManager.cs's #region Hook Events region:
this.listView.GiveFeedback += listView_GiveFeedback;
And then add this to the #region Event Handling Methods part:
private void listView_GiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if (e.Effect == DragDropEffects.Move)
{
e.UseDefaultCursors = false;
Mouse.SetCursor(Cursors.SizeAll);
}
else
e.UseDefaultCursors = true;
e.Handled = true;
}
Don't forget to unsubscribe in the #region Unhook Events part:
this.listView.GiveFeedback -= listView_GiveFeedback;