The attached source code is a C# application that demonstrates the dragging and dropping of a Windows control within a container.
Simply run the code and you will see a form like this:

Now drag and drop the button and you will see the results like this:

See the attached source code for more details.
kim sung jineditedPosted Jul 12, 2010, 11:22 AMEdited Jul 12, 2010, 11:24 AM
would you mind examine my c# source? please, help me. i don't know why don't working drag & drop my c# source if you send e-mail me , i will send my source that i don't understand. [email protected] <- i'll waiting your message
jose laraPosted Sep 25, 2009, 1:34 PM
hola al correr el proyecto en VS 2008 me marca un error de : Error al registrar DragDrop.
ema emaPosted Aug 17, 2009, 11:03 PM
thanks i really needed this
Moha MedPosted Nov 19, 2008, 8:26 AM
thx you .. really nice example ..
Gilliard AlaneditedPosted Oct 21, 2008, 9:28 AMEdited Oct 21, 2008, 9:35 AM
this is a great example to a newbie user (like me). Thanks for the code =)
asmaa alissaPosted Feb 26, 2008, 4:06 PM
plz send me ,ineed it very much quickly
Jason ValePosted Oct 31, 2007, 5:14 PM
Great article, thanks! I've added the actual dragging of the object so that it follows the mouse around, and will post if I get a chance. Might be helpful to others.