Drag and drop from Windows File Explorer onto a Windows Form is not working

后端 未结 4 1762
一生所求
一生所求 2021-02-09 01:41

I\'m having an issue dragging a file from Windows Explorer on to a Windows Forms application.

It works fine when I drag text, but for some reason it is not recognizing

4条回答
  •  自闭症患者
    2021-02-09 02:28

    I added the code that arul mentioned and things still didn't work, but it got me thinking.

    I started thinking it might be a Vista issue so I sent it to a friend that had Windows XP and it worked great! I then tried running it outside of the Release folder in the bin directory and what do you know it worked!

    The only time it does not work is when I am running it inside the Visual Studio 2008 IDE ... that's just weird.

提交回复
热议问题