Drag And Drop not working on vista<p>Hello,</p> <p> </p> <p>I wrote a very basic wpf window to do some drag and drop of files and folders.</p> <p><font color="#0000ff" size=2> </p> <p>&lt;</font><font color="#a31515" size=2>Window</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>x:Class</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>WindowsApplication3.Window1</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>http://schemas.microsoft.com/winfx/2006/xaml/presentation</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2>xmlns:x</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>http://schemas.microsoft.com/winfx/2006/xaml</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2>Title</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>WindowsApplication3</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>Height</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>300</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>Width</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>300</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>AllowDrop</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>True</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>Drop</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>OnDrop</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p>&gt;&lt;</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;&lt;/</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;/</font><font color="#a31515" size=2>Window</font><font color="#0000ff" size=2>&gt;</font></p> <p><font color="#0000ff" size=2></font> </p> <p><font color="#000000" size=2>and the only function</font></p> <p><font color="#0000ff" size=2></font> </p><font color="#0000ff" size=2><font color="#0000ff" size=2> <p>public</font><font color="#000000" size=2> </font><font color="#0000ff" size=2>void</font><font color="#000000" size=2> OnDrop(</font><font color="#0000ff" size=2>object</font><font color="#000000" size=2> sender, </font><font color="#2b91af" size=2>DragEventArgs</font><font size=2><font color="#000000"> e) </font>{}</p> <p> </p> <p><font color="#000000">This code is perfectly working under windows xp but when I use it under windows vista I can't drop any things on the window. </font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">Does someone manage to get the drag and drop feature working on vista?</font></p> <p><font color="#000000">Is there something to add to get it work?</font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">(The purpose is to drag and drop files and folders to the window)</font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">Any input would be very welcome.</font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">Thx</font></font></font></p>© 2009 Microsoft Corporation. All rights reserved.Tue, 17 Mar 2009 23:03:44 Zbe88d6d8-a1a6-47b6-b95a-68fa44259fa7http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#be88d6d8-a1a6-47b6-b95a-68fa44259fa7http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#be88d6d8-a1a6-47b6-b95a-68fa44259fa7Gomatahttp://social.msdn.microsoft.com/Profile/en-US/?user=GomataDrag And Drop not working on vista<p>Hello,</p> <p> </p> <p>I wrote a very basic wpf window to do some drag and drop of files and folders.</p> <p><font color="#0000ff" size=2> </p> <p>&lt;</font><font color="#a31515" size=2>Window</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>x:Class</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>WindowsApplication3.Window1</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>http://schemas.microsoft.com/winfx/2006/xaml/presentation</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2>xmlns:x</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>http://schemas.microsoft.com/winfx/2006/xaml</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2>Title</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>WindowsApplication3</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>Height</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>300</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>Width</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>300</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>AllowDrop</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>True</font><font size=2>&quot;</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>Drop</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>OnDrop</font><font size=2>&quot;</p></font><font color="#0000ff" size=2> <p>&gt;&lt;</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;&lt;/</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;/</font><font color="#a31515" size=2>Window</font><font color="#0000ff" size=2>&gt;</font></p> <p><font color="#0000ff" size=2></font> </p> <p><font color="#000000" size=2>and the only function</font></p> <p><font color="#0000ff" size=2></font> </p><font color="#0000ff" size=2><font color="#0000ff" size=2> <p>public</font><font color="#000000" size=2> </font><font color="#0000ff" size=2>void</font><font color="#000000" size=2> OnDrop(</font><font color="#0000ff" size=2>object</font><font color="#000000" size=2> sender, </font><font color="#2b91af" size=2>DragEventArgs</font><font size=2><font color="#000000"> e) </font>{}</p> <p> </p> <p><font color="#000000">This code is perfectly working under windows xp but when I use it under windows vista I can't drop any things on the window. </font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">Does someone manage to get the drag and drop feature working on vista?</font></p> <p><font color="#000000">Is there something to add to get it work?</font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">(The purpose is to drag and drop files and folders to the window)</font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">Any input would be very welcome.</font></p> <p><font color="#000000"></font> </p> <p><font color="#000000">Thx</font></font></font></p>Thu, 07 Jun 2007 06:58:59 Z2007-06-07T06:58:59Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#078dd1e0-e887-490e-860e-b267a51769c8http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#078dd1e0-e887-490e-860e-b267a51769c8Gomatahttp://social.msdn.microsoft.com/Profile/en-US/?user=GomataDrag And Drop not working on vista<p>Hi,</p> <p> </p> <p>I tried to get it work but i can't manage to do it.</p> <p> </p> <p>I tried to change the drag effect during the drag over event but I don't even get the even to be fired.</p> <p> </p> <p>The only thing I get is the forbiden icon when I move files and folders over the application window.</p> <p> </p> <p>The code was perfectly working under windows XP and not at all under vista.</p> <p> </p> <p>I don't have any clue about what's going wrong or what is requiered to get it work under windows vista.</p> <p> </p> <p>If any one could help I would appreciate.</p> <p> </p> <p>Thank you</p>Fri, 08 Jun 2007 06:09:53 Z2007-06-08T06:09:53Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#68c51f56-d60e-42b0-baed-1bc8e6b2d0e5http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#68c51f56-d60e-42b0-baed-1bc8e6b2d0e5Gomatahttp://social.msdn.microsoft.com/Profile/en-US/?user=GomataDrag And Drop not working on vista<p>Hello,</p> <p> </p> <p>I found a post (<a title="http://wundasworld.blogspot.com/2007/04/vista-drag-and-drop.html" href="http://wundasworld.blogspot.com/2007/04/vista-drag-and-drop.html">http://wundasworld.blogspot.com/2007/04/vista-drag-and-drop.html</a>) that say's that </p> <p> </p> <p><font color="#3366ff">Applicati</font><font color="#3366ff">on A will not accept &quot;drags&quot; from application B because Vista prevents lower security applications from giving data (and potentially hurting) higher level applications.</font> </p> <p> </p> <p>I m runing visual studio as administrator and the files comes from the explorer that is probably not runing as administrator.</p> <p> </p> <p>Any one knows more about this issue?</p> <p> </p>Fri, 08 Jun 2007 07:50:05 Z2007-06-08T07:50:05Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#567f8284-2a76-4174-bda5-a91a72415871http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#567f8284-2a76-4174-bda5-a91a72415871WPCoderhttp://social.msdn.microsoft.com/Profile/en-US/?user=WPCoderDrag And Drop not working on vistaI noticed this as well -- but didn't investigate thoroughly.<br><br>Try running your application outside of Visual Studio. Does the drag/drop work there? My experience shows that it does. I believe you can attach to the other process and debug it that way if necessary (I don't recall that needing elevated privileges).<br><br>Try running an Explorer instance (source for drag) as an Administrator -- does drag work when running debugging/from Visual Studio?<br><br>Third -- try not running VS as an admin in Vista.<br>Fri, 08 Jun 2007 12:29:49 Z2007-06-08T12:29:49Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#b33a58bd-b313-4099-aa22-4d98559f7e2fhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#b33a58bd-b313-4099-aa22-4d98559f7e2fManishV2http://social.msdn.microsoft.com/Profile/en-US/?user=ManishV2Drag And Drop not working on vista<p><font face="Courier New, Courier, Monospace" size=2>I am facing the same issues mentioned above on Vista.</font></p> <p><font face="Courier New" size=2></font> </p> <p><font face="Courier New, Courier, Monospace" size=2>I have an application developed in C# that uses a listbox with drag and drop feature. when i run it with a non-admin privileges</font><font face="Courier New, Courier, Monospace" size=2> the drag and drop works fine. however when i run it with  the admin privileges it just does not work. </font></p> <p><font face="Courier New, Courier, Monospace" size=2>I require that the application HAS to run with admin privileges as there are a couple of directories/files i need to create/modify and this sometimes fails in with the normal privileges.</font></p> <p><font face="Courier New, Courier, Monospace" size=2></font> </p> <p><font face="Courier New, Courier, Monospace" size=2>Has anyone got drag and drop working with Admin Privileges on Vista? </font></p> <p><font face="Courier New, Courier, Monospace" size=2>if you have plz let me know how? plz mail me @ </font><a title="mailto:manish.goyal@in.v2solutions.com" href="mailto:manish.goyal@in.v2solutions.com"><font face="Courier New, Courier, Monospace" size=2>manish.goyal@in.v2solutions.com</font></a></p> <p><font face="Courier New, Courier, Monospace" size=2></font> </p> <p><font face="Courier New, Courier, Monospace" size=2>thanks a lot in advance.</font></p>Mon, 11 Jun 2007 06:10:21 Z2007-06-11T06:10:21Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#8528f747-f679-4a19-940a-8ab03baed37chttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#8528f747-f679-4a19-940a-8ab03baed37cWPCoderhttp://social.msdn.microsoft.com/Profile/en-US/?user=WPCoderDrag And Drop not working on vistaThere may be no workaround to this problem as this is a Vista issue, not WPF. Rather than running your application as administrator, is it possible to grant additional security to the directories and folders to the normal user rather than elevating privileges of the application?<br><br>If you drag from one admin window to another admin window, does that work? <br><br>The problem is that you're not allowed to drag from one application running with a normal user security token to another application running with an elevated security token. <br>Mon, 11 Jun 2007 15:50:42 Z2007-06-11T15:50:42Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#70e95359-3499-458c-b2e5-a3cfc29eaf72http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#70e95359-3499-458c-b2e5-a3cfc29eaf72Dhavalc_http://social.msdn.microsoft.com/Profile/en-US/?user=Dhavalc_Drag And Drop not working on vista<p align=left><font face=Arial size=2></font> </p> <p>There is Windows Policie which privent you to do such thing</p> <p align=left> </p> <p align=left>When you run your application Under Admin privialge at that time your Programe have Highest priority, n Explorer have Midioum priority.</p> <p align=left> </p> <p align=left>Whindos Define that Low Prioprity can not send messge to high prioprity.</p> <p align=left> </p> <p align=left>If you force fully want to perfom this you may have to change messge priority when messge post to your application ..</p> <p align=left> </p>Wed, 26 Dec 2007 04:39:06 Z2007-12-26T04:39:06Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#af77e2d7-e82c-47a7-af9d-03afe4776c4fhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#af77e2d7-e82c-47a7-af9d-03afe4776c4fbullshiiiithttp://social.msdn.microsoft.com/Profile/en-US/?user=bullshiiiitDrag And Drop not working on vista<p align=left><font face=Arial size=2>Hi there folks</font></p> <p align=left> </p> <p align=left>I run vista enterprise in a workgroup, and I have disabled UAC. I dont have any problems like this, I can drag 'n drop as much as I wan't to.</p> <p align=left> </p> <p align=left>I will bet that if you're running vista in a domain, you have to set these rules (drag 'n drop) via group policies<img src="http://forums.microsoft.com/MSDN/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMOEKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxF2-06wONxYyCMHQHpN9O-mbTC54LHcVvUdD2XWTDiuYY1&amp;t=633337194230757564"> in active directory, if you are not admin, ask him!</p> <p align=left> </p> <p align=left> </p> <p> </p> <p align=left> </p>Thu, 17 Apr 2008 10:31:33 Z2008-04-17T10:31:33Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#f65cd631-ca18-48a9-97dc-830fe5092d57http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be88d6d8-a1a6-47b6-b95a-68fa44259fa7#f65cd631-ca18-48a9-97dc-830fe5092d57kukehttp://social.msdn.microsoft.com/Profile/en-US/?user=kukeDrag And Drop not working on vistaI'm working on Server 2008 for a Windows SharePoint Services application and I'm finding it almost impossible:<br><br><ul><li>Can't easily use the GAC <br></li><li>Can't drag and drop into VS!</li><li>&quot;Allow&quot;, &quot;Allow&quot;, &quot;Allow&quot;</li></ul>What a joke... shouldn't have to disable UAC just to work. <br><br>So I created a shortcut to C:\Windows\Explorer.exe onto the desktop and then &quot;Ran as Administrator&quot; and guess what? It doesn't work. No drag and drop.<br> Tue, 17 Mar 2009 23:03:39 Z2009-03-17T23:03:39Z