Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Winforms -> Visualize dragged item for Drag & Drop

I'd like to achieve the following and was looking for a sample/tutorial but couldn't really find anything:

I have C# Winforms application, which has multiple Forms within the same process. I'd like to be able to drag & drop items within and between forms and would like to provide some custom painted visualization of the item being dragged.

For example, my IM app shows the effect that I'd like to achieve: alt text

Thanks,

Tom

like image 743
TJF Avatar asked Nov 05 '22 07:11

TJF


1 Answers

You actually physically have to drag a control with the mouse.

For example: http://blogs.msdn.com/b/adamroot/archive/2008/02/19/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx

like image 99
AndrewVos Avatar answered Nov 10 '22 19:11

AndrewVos