Featured post
windows - Drag and drop on Win7 machine to my app -
i have user running winforms app on win7. app allows users select rows open excel spreadsheet , drag-n-drop them onto app. however, user cannot drag-n-drop. cursor changes "no" cursor (little circle line through it) , operation won't complete.
i researching drag-n-drop , win7 , found points uac and/or uipi. looking solutions , not sure if of below work:
if user logs in admin (and result runs app admin) allow drag-n-drop work?
does user need turn off or change settings of uac/uipi in order able drag-n-drop?
i not sure issue is. app runs c:/documents , settings/... (c:/users/... on win7). running matter? drag-n-drop not work because user not running app enough permissions? excel , app on different permission levels? if so, can done that? note though app allows users drag file directly, doesn't work either.
also, there way can have user reproduce issue other apps? there apps come win7 can see same problem with. example, can reproduced using notepad?
thanks.
explaining problem away uipi very long stretch. doesn't have whether or not user logged-in admin, doesn't affect uac , program running same account anyway. way uipi kick in stop d+d when your program elevated , excel not.
to elevated requires work , doesn't happen accident. you'd have include manifest user gets uac prompt, you'd know that. or user have change desktop shortcut , tick "run program administrator" option, she's know that. while uipi can bypassed windows messages (changewindowmessagefilter), cannot drag , drop if elevation going on stuck. ultimate test ask user put uac slider way down.
the more scenario dragenter event handler isn't happy data sees , therefore doesn't assign e.effect property. if can't debugger on-site write little test program logs values of e.data.getformats() plus whatever else use check if drop acceptable. , don't forget obvious: user fumbling drag somehow.
- Get link
- X
- Other Apps
Comments
Post a Comment