• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

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.
0
jhshukla
Asked:
jhshukla
  • 2
  • 2
1 Solution
 
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
 
lakshman_ceCommented:
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now