1

This question is a follow up question to post:

Is it possible to move a composite control by clicking on one of its daughter controls?

Is it possible to animate the actual drag and drop movement. I.E. instead of having just a mouse pointer and a small rectangular box underneath, display something that looks like the composite control?

Community
  • 1
  • 1
John Schultz
  • 672
  • 1
  • 10
  • 29

1 Answers1

0

The first approach is to simply create an static icon that looks like the composite control and for example embed it in an application as a resource. Then you have to use it as a custom drag and drop icon. This answer Can I choose a custom image for C# Windows Application Drag Drop functions explains how to do that.

The second approach is more complex. Instead of using a static icon you can create an icon dynamically based on the current content of a control being dragged. The following answer C# Drag-and-Drop: Show the dragged item while dragging explains it in more details.

Community
  • 1
  • 1
Michał Komorowski
  • 6,198
  • 1
  • 20
  • 24