简体   繁体   中英

Why won't my DragDrop handlers fire?

Created a WinForm app, set AllowDrop property on the form to true, wired up the drag handlers (enter, exit, over and drop) and they weren't firing. Why not?

I always launch visual studio from a shortcut that runs it as Administrator (because I often do socket stuff that requires admin rights). But my windows explorer shell is not executing as admin, so it disallows the drop due to permissions.

Relaunching VS without admin permissions fixes the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM