Drag and drop image?

  • Thread starter Thread starter Richard Lewis Haggard
  • Start date Start date
R

Richard Lewis Haggard

Environment: VS05, C#

I'm trying to come up with a good way to create and handle drag and drop
images like those that are created by the File Explorer. My first attempt
was to use ImageList but this only seems to work within a single control.
Drag images are limited to the control in which the drag begins. Would
someone be so kind as to suggest a better way to create and show a drag
image that will be created by the control in which the drag begins but will
still be visible in other controls? Better yet, visible when off the
application's client area, too?
 
You will need to use IDragSourceHelper and IDropTargtHelper. See their docs
in MSDN.

Alternatively, if you don't mind a commercial component, take a look at
Shell MegaPack from http://www.ssware.com which does exactly what you need.
 
I ended up using ImageList functionality but had to put the ImageList calls
in the main application window. To do this, I had to put some communcations
channels from the child windows back up to the main app form. Works like a
champ. In this particular case, all drag and drop operations are limited to
the application with no possibility of dragging off the app.
--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for a couple thousand good giggles!:
www.haggard-and-associates.com/Humor/humor.htm

G Himangi said:
You will need to use IDragSourceHelper and IDropTargtHelper. See their
docs in MSDN.

Alternatively, if you don't mind a commercial component, take a look at
Shell MegaPack from http://www.ssware.com which does exactly what you
need.
 
Back
Top