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, 7:22 AM EDTEdited Jul 12, 2010, 7:24 AM EDT
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, 9:34 AM EDT
hola al correr el proyecto en VS 2008 me marca un error de : Error al registrar DragDrop.
ema emaPosted Aug 17, 2009, 7:03 PM EDT
thanks i really needed this
Moha MedPosted Nov 19, 2008, 3:26 AM EST
thx you .. really nice example ..
Gilliard AlaneditedPosted Oct 21, 2008, 5:28 AM EDTEdited Oct 21, 2008, 5:35 AM EDT
this is a great example to a newbie user (like me). Thanks for the code =)
asmaa alissaPosted Feb 26, 2008, 11:06 AM EST
plz send me ,ineed it very much quickly
Jason ValePosted Oct 31, 2007, 1:14 PM EDT
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.