DragDrop

How do I get Drag-n-Drop feature to work in C++.NET (and the whole .NET family for that matter)? I have allowed DragDrop in Properties and have registered a handler but when I try to drop a file or shortcut on the form, it shows me the not-allowed cursor. the one with circle and a diagonal line in it. I can capture the DragEnter Event but not DragDrop.
LVL 9
jhshuklaAsked:
Who is Participating?
 
lakshman_ceConnect With a Mentor Commented:
Look at this sample for dragging from windows explorer to windows form
http://www.codeproject.com/csharp/dragdrop.asp?df=100&forumid=14217&exp=0&select=1116688
0
 
lakshman_ceCommented:
Look at this drag/drop beginner's tutorial. Same concepts apply to VC++.NET also.
http://www.voidnish.com/articles/ShowArticle.aspx?code=csdragndrop01
0
 
jhshuklaAuthor Commented:
plz hold on for a few more days.
0
 
jhshuklaAuthor Commented:
lakshman, the link that you sent describes how to drag and drop from one control to another in the same form. I want to know how to drag an object from desktop or a folder, and drop it on the form. and after that, how to determine what kind of object was dropped - folder (normal or zipped) or what kind of file - and get path to it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.