Meelis,
Search
www.codeproject.com for drag and drop examples.
If your dragging to "another place" refers to another application, see:
Performing Drag-and-Drop Operations Between Applications
http://msdn.microsoft.com/library/d...btskPerformingDragDropBetweenApplications.asp
As for seeing the picture as it is moved, try creating a custom cursor,
which is actually made from the image itself.
I know I've seen this done somewhere so I did a google search....and got
this hit:
Wiktor Zychla posted this on May 27 2003, 4:52 am:
modify the code snippet below to set the mouse pointer to proper image in
Drag&Drop. it works for me. images are even build dynamically and show the
content of the item beeing dragged.
Bitmap b = new Bitmap( 30, 15 );
Graphics g = Graphics.FromImage ( b );
g.DrawString ( "text", this.Font, Brushes.Black, 0, 0 );
IntPtr ptr = b.GetHicon();
Icon i = Icon.FromHandle ( ptr );
Cursor c = new Cursor( ptr );
this.Cursor = c;
Dave