Why is DragDrop not working under VS2010?

前端 未结 1 621
不思量自难忘°
不思量自难忘° 2020-12-11 05:32

I have a winforms app that uses a UserControl. The user control\'s job is to collect a file that the user drops on it from Windows Explorer, Open the file, determine the typ

相关标签:
1条回答
  • 2020-12-11 06:05

    A likely failure cause here is UIPI, the user interface component of UAC. You cannot drag from a non-elevated process and drop to a window owned by an elevated process. You'll trigger this when you started Visual Studio from a shortcut that has the "Run this program as an administrator" option in the Compatibility tab turned on. The only workaround is to turn that option off. Or to run it directly from the .exe file, as you discovered.

    0 讨论(0)
提交回复
热议问题