I'm trying to change the cursor while a drag and drop occurs between two lists in a winforms. I tried several ways (several tutorial and solutions) found over the web.
I even tried to simply change the cursor when the form loads. But as soon as the mouse moves, the cursor is back to default.
I use the following events for my drag and drop.
this.MatchRequisitionListView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.MatchR equisitionListView_MouseUp);
this.MatchRequisitionListView.DragDrop += new System.Windows.Forms.DragEventHandler(this.MatchRe quisitionListView_DragDrop);
this.MatchRequisitionListView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.MatchR equisitionListView_MouseMove);
this.MatchRequisitionListView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.MatchR equisitionListView_MouseDown);
this.MatchRequisitionListView.DragEnter += new System.Windows.Forms.DragEventHandler(this.MatchRe quisitionListView_DragEnter);
I use this to change the cursor (didn't found a way to put and use a .cur from the LocalRessources)
IntPtr hCursor = LoadCursorFromFile("D:\\dev\\iesidebar\\trunk\\Tal eo.Plugins.IESideBar.Shared\\Resources\\3dsmove.ic o");
Cursor.Current = new Cursor(hCursor);
Even If I put this anywhere in my code, the only thing I managed to do is change the cursor on MouseDown. But as soon as I move the mouse, the dragDrop cursor is shown.
As anyone managed to do this?