468,250 Members | 1,583 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,250 developers. It's quick & easy.

dragndrop; i.e. from explorer to my application

hi! i come from vb6 and am wondering:

what happened to ole_drag/drop?

and how can implement dragndrop from the explorer (or any other file list,
i.e. winamp) into my listbox in c#? i've done it all in vb6; strange that
it's so different in c#...

i'm trying to figure it out just now and i sortta got stuck when i noticed
that not even the mousecursor changes as i would expect it to, when i set
"allowdrop = true"; although "dragenter" is triggered...

does anyone have a codesnippet at hand that he (or she) can just cutnpaste?
thanks!

mike

Nov 16 '05 #1
2 1021
Michael,

Check out the section of the .NET framework titled "Performing
Drag-and-Drop Operations in Windows Forms", located at (watch for line
wrap):

http://msdn.microsoft.com/library/de...operations.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Michael Maercker" <mi**********@ish.de> wrote in message
news:417e5dac@news-fe-01...
hi! i come from vb6 and am wondering:

what happened to ole_drag/drop?

and how can implement dragndrop from the explorer (or any other file list,
i.e. winamp) into my listbox in c#? i've done it all in vb6; strange that
it's so different in c#...

i'm trying to figure it out just now and i sortta got stuck when i noticed
that not even the mousecursor changes as i would expect it to, when i set
"allowdrop = true"; although "dragenter" is triggered...

does anyone have a codesnippet at hand that he (or she) can just
cutnpaste?
thanks!

mike

Nov 16 '05 #2
thanks, that oughtta get me going!
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.