Drag and drop image?

  • Thread starter Richard Lewis Haggard
  • 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?
 
G

G Himangi

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.
 
R

Richard Lewis Haggard

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top