Link to home
Start Free TrialLog in
Avatar of mickeyshelley1
mickeyshelley1Flag for United States of America

asked on

Change Cursor During Drag And Drop VB.NET

A have a label “Label2” that I am coping data from and to a textbox named “textbox2” using drag and drop which works fine. I would like to change the default cursor to the data being dragged until the process is complete. It that doable?
VB.NET 2013 windows form
ASKER CERTIFIED SOLUTION
Avatar of quizwedge
quizwedge
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of David Johnson, CD
he is using winforms so
you have to set e.UseDefaultCursor = False in your GiveFeedback event handler to make your cursor change visible. Without it, drag and drop always uses the default cursors.

stackoverflow.com/questions/5206999/change-cursor-as-feedback-in-dragdrop-vb-net-2010
Ah, good catch David. Looked quickly and saw .NET and that it had been moved from Classic. Missed the last line of his question. My bad.