TJF
TJF

Reputation: 2258

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

Upvotes: 5

Views: 2765

Answers (1)

AndrewVos
AndrewVos

Reputation: 1295

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

Upvotes: 2

Related Questions