Windows Develop Bookmark and Share   
 index > Windows Forms General > Can't drag drop into .NET application from external applications
 

Can't drag drop into .NET application from external applications

Hi,

We're developing a +- 400 000 LOC program that extensively used drag-and-drops to simplify the interface. However, recently, it became impossible to drag-drop ANYTHING from an external application into the program. AllowDrop isn't changed anywhere and it seems that drag-and-drop still works on some of our developers' computers overseas but not on mine. For instance, I can't drag drop a picture from IE or a file from Explorer into my application. But draggingsomethingfrom the application into another part of the application still works. I'm using Windows 7 x64 and have no other problems so far. Is there some sort of system-wide setting that is affecting this?
xsterx  Sunday, September 20, 2009 7:50 PM
Look at the Output window for exceptions that are swallowed by the D+D code. Trap them with Debug + Exceptions, Thrown box.

Hans Passant.
nobugz  Sunday, September 20, 2009 8:38 PM
Hi,

Thanks for the help. There's nothing unusual in the output window. The program just became unable to trigger any .DragEnter or any other drag-drop related events. The cursor shows a can't drop icon when I drag something from external programs.
xsterx  Sunday, September 20, 2009 10:43 PM
Debug it. Set a breakpoint on DragEnter.

Hans Passant.
nobugz  Monday, September 21, 2009 1:41 AM
Hi,

Sorry, I miscommunicated. I was trying to say that DragEnter never gets called if the source of the drag comes from outside the application
xsterx  Monday, September 21, 2009 1:43 AM
anyone??
This could potentially be a settings issue. The code works on other computers. I tried running the executable directly and tried compiling with admin rights...
xsterx  Friday, October 02, 2009 7:11 PM

You can use google to search for other answers

Custom Search

More Threads

• Accessing a form's controls from another form
• How to add Onclick event for PictureBox
• Noob Question
• AxWebBrowser in a user control, in a MDI application
• How to make printable file?
• Any problem with installing .NET application on a shared network drive?
• String.Format() problem
• Canceling a print while within a page
• Data Posting Ideas?
• Get Mouse pointer position