Can I choose a custom image for C# Windows Application Drag Drop functions?

后端 未结 2 1054
孤街浪徒
孤街浪徒 2020-12-10 08:33

I am writing a small project where I would like to make use of drag and drop functionalty to ease some of the operations for the end user. To make the application a little m

2条回答
  •  不思量自难忘°
    2020-12-10 09:24

    You need to hide the default cursor and create your own window containing your custom image and then move that window with the position of the mouse.

    You might also take a look at http://web.archive.org/web/20130127145542/http://www.switchonthecode.com/tutorials/winforms-using-custom-cursors-with-drag-drop

    UPDATE 2015-11-26

    Updated the link to point to archive.org's last snapshot

提交回复
热议问题