Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / May 2007

Tip: Looking for answers? Try searching our database.

Drag and drop image?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Lewis Haggard - 23 May 2007 20:43 GMT
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?
Signature

Richard Lewis Haggard
www.Haggard-And-Associates.com

G Himangi - 25 May 2007 04:47 GMT
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.

> Environment: VS05, C#
>
[quoted text clipped - 6 lines]
> will still be visible in other controls? Better yet, visible when off the
> application's client area, too?
Richard Lewis Haggard - 31 May 2007 21:18 GMT
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.
Signature

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

> You will need to use IDragSourceHelper and IDropTargtHelper. See their
> docs in MSDN.
[quoted text clipped - 13 lines]
>> will still be visible in other controls? Better yet, visible when off the
>> application's client area, too?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.