views:

67

answers:

1

Hi,

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

+1  A: 

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

AndrewVos
@AndrewVos: Can you drag the control out of its window ?
Homam
No, but you could add the control to a form and drag said form.
AndrewVos
@AndrewVos: You mean drag a Form then? that's the way I was thinking about.
Bolu
I looked at the samples and tried the sample code and this does exactly what I was looking for. The only issue is, that if you drag it to certain parts of the screen, it crashes and leaves artifacts on my screen. So, it will need some work.
Tom Frey