<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx</link><description>Series Links This is part of a 3 part series: Shell Style Drag and Drop in .NET (WPF and WinForms) Shell Style Drag and Drop in .NET - Part 2 Shell Style Drag and Drop in .NET - Part 3 Window Explorer Drag Image Introduction If you've worked with .NET</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8373716</link><pubDate>Thu, 10 Apr 2008 04:06:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8373716</guid><dc:creator>gcadmes</dc:creator><description>&lt;p&gt;Unsupported functions...&lt;/p&gt;
&lt;p&gt;Can I get a little code snippet or help for adding the necessarry implementation for the unsupported functions?&lt;/p&gt;
&lt;p&gt;thx&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8375448</link><pubDate>Thu, 10 Apr 2008 19:37:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8375448</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Which functions in particular are you looking for help with? I added support for IDataObject.DAdvise and IDataObject.DUnadvise in Part 3 (&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-part-3.aspx"&gt;http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-part-3.aspx&lt;/a&gt;).&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8422875</link><pubDate>Fri, 25 Apr 2008 01:18:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8422875</guid><dc:creator>gcadmes</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;What I am trying to do is drag a compressed archive file from a utility I wrote onto Explorer. I found a CodeProject artical where this is possible, but it doesn't seem to work well in Vista. It accomplishes this by using the IDataObject.GetDataHere method. That is why I requested the unsupported functions.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.codeproject.com/KB/dotnet/DataObjectEx.aspx"&gt;http://www.codeproject.com/KB/dotnet/DataObjectEx.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My hope is to use the great example you provided and modify it to fit my needs.&lt;/p&gt;
&lt;p&gt;Thanks for replying so quickly.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8423461</link><pubDate>Fri, 25 Apr 2008 09:02:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8423461</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;I also implemented GetDataHere in Part 3.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8425025</link><pubDate>Sat, 26 Apr 2008 03:18:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8425025</guid><dc:creator>gcadmes</dc:creator><description>&lt;p&gt;Great! Thank you!&lt;/p&gt;
&lt;p&gt;In the SwfDataObjectExtensions.cs, when trying to SetDragImage(this IDataObject dataObject, Image image, System.Drawing.Point cursorOffset), in the first try/catch, the DeleteObject(hbmp) throws an EntryPointNotFoundException. &lt;/p&gt;
&lt;p&gt;Also, I had to comment out AllowDropDescription() as I am running this code on XP SP2.&lt;/p&gt;
&lt;p&gt;Any ideas will be greatly appreicated, and the code samples in your blog are equally appreciated.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8425132</link><pubDate>Sat, 26 Apr 2008 03:50:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8425132</guid><dc:creator>gcadmes</dc:creator><description>&lt;p&gt;I just discovered that the project I am working on must target the 2.0 Framework. After compiling the main core lib (DragDropLib) targeting the 2.0 Framework, there were several WPF compiler errors and warnings. &lt;/p&gt;
&lt;p&gt;Unfortunately, I don’t think I can utilize your library after all; unless of course I painstakingly modify the code to work for 2.0. Do you suppose that would be a huge undertaking? I think the error count was around 100 or so.&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8430639</link><pubDate>Sun, 27 Apr 2008 10:22:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8430639</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Refreshing the code to work with .NET 2.0 should be a fairly simple task. For the most part, you can work with only the System.Windows.Forms version of the code, so don't reference the WPF code. After that, you should see errors complaining about the .NET 3.5 extension method syntax (using &amp;quot;this&amp;quot; keyword on first parameter of static methods). Just remove &amp;quot;this&amp;quot;, then fix all the &amp;quot;method doesn't exist for class&amp;quot; errors that remain to point to the static methods. &lt;/p&gt;
&lt;p&gt;As for the DeleteObject problem, that seems strange. DeleteObject has been around since Windows 95/NT. You may want to investigate which GDI dll the function entry is referenced in, then use depends.exe (Dependency Walker) to verify the entry point exists in it.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8571936</link><pubDate>Tue, 03 Jun 2008 21:40:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8571936</guid><dc:creator>Nishita</dc:creator><description>&lt;p&gt;I am fairly new to Winforms and .NET. I have a winforms application in which there is a toolbox from which user selects which items to drag and drop on the control. Everytime i drag an item from the toolbox on the control i want to show the image of the toolbox item so that the user can drop the item within the printable bounds of the paper. What sections of your code will i be using ? Do i need to implement the COM interfaces ? &lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8701808</link><pubDate>Mon, 07 Jul 2008 16:23:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8701808</guid><dc:creator>Farhan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A nice piece of code. I tried out the code.&lt;/p&gt;
&lt;p&gt;I have a custom control derived from a panel being used as a thumbnail. The thumbnails are generated dynamically. So a common event handler for all controls generated. I am using the panel.DrawToBitmap() function to generatethe drag drop image resembling the thumbnail itself. But the code works only for the last added thumbnail control and not all the controls.&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8721633</link><pubDate>Fri, 11 Jul 2008 19:34:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721633</guid><dc:creator>James</dc:creator><description>&lt;p&gt;Don't supose you have a C++ 2008 version of this?&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#8898518</link><pubDate>Wed, 27 Aug 2008 02:15:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8898518</guid><dc:creator>Kirk</dc:creator><description>&lt;p&gt;I've got the drag descriptions working with a WinForms TreeView, but there's one minor thing I can't seem to sort out. &amp;nbsp;As I drag over nodes that can accept a drop (DragDropEffects == Move or Copy), I properly see the drag description I set (based on the target node name). &amp;nbsp;However, when I then move over another node in the tree that can't accept a drop (DragDropEffects == None), I do see the proper drag image but the drop description text box is still visible, albeit fairly small and empty. &amp;nbsp;I was expecting only the drag image to appear -- not an empty drop description text box. &amp;nbsp;I have a screen capture, but I don't see a way to attach that here. &amp;nbsp;Any advice?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;-kirk&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9029407</link><pubDate>Sun, 02 Nov 2008 21:06:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9029407</guid><dc:creator>Diego</dc:creator><description>&lt;p&gt;Hello!, i have a problem and i think you could help me. I'm working with drag drops functions because i need to do &amp;nbsp;a DROP into other windows app. My app knows the destination window, and i want to send a WM_DROPFILES message only to that window. I don't want a user doing the drag&amp;amp;drop, i want my app doing the task. I'm trying tu use postmessage, but it's doesn't work. can you help me with this?. thanks!&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9321504</link><pubDate>Thu, 15 Jan 2009 23:27:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9321504</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;I have been unable to track down wheat appears to be a bug in this. &amp;nbsp;I have used your sample as a guide for a WPF application I am working on. &amp;nbsp;I have set AllowDrop=True on my app's window, and added the DragOver, Enter, Leave, Drop overrides to the code behind, exactly as in your sample (in fact this bug happens in your sample as well).&lt;/p&gt;
&lt;p&gt;If I drag an email message from Outlook over my app, it sets the drag drop effects to none, and it never changes. &amp;nbsp;These two messages are continually output into the app's debug screen....&lt;/p&gt;
&lt;p&gt;A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in PresentationCore.dll&lt;/p&gt;
&lt;p&gt;A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in InterfaceUtilities.dll&lt;/p&gt;
&lt;p&gt;The error itself is occuring in WpfDropTargetHelperExtensions.cs file in the DragEnter() method at the &lt;/p&gt;
&lt;p&gt;dropHelper.DragEnter(windowHandle, (ComIDataObject)data, ref pt, (int)effect);&lt;/p&gt;
&lt;p&gt;line.&lt;/p&gt;
&lt;p&gt;If I remove the OnDrag-X overrides in the window's code behind, then the error does not occur, however then the drag adorner becomes somewhat unpredicatable when drop or leave occurs.&lt;/p&gt;
&lt;p&gt;All I can figure is it may have something to do with the fact that there are no adorners when you drag from Outlook, causing the call to freak out? &amp;nbsp;I have not yet been able to come up with a fix for it though.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9328279</link><pubDate>Fri, 16 Jan 2009 17:23:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9328279</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;When dragging an Outlook message over your sample form, a series of exception messages are spit out into the debug output window...&lt;/p&gt;
&lt;p&gt;A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in PresentationCore.dll&lt;/p&gt;
&lt;p&gt;A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in WpfDataObjectExtensions.dll&lt;/p&gt;
&lt;p&gt;I was able to track down the exact message of the exception to &amp;quot;Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))&amp;quot;. &amp;nbsp;It is erroring during the calls being made in the window drag drop overrides. &amp;nbsp;The problem I have found with this in my application with this is that once this happens, drag and drop operations are not allowed from that point forward, even though I have controls that will accept this drop type.&lt;/p&gt;
&lt;p&gt;So far I have not been able to solve this, other than to do a check on GetDataPresent(&amp;quot;FileGroupDescriptor&amp;quot;) and bypass the shell drag drop altogether if it's the data format.&lt;/p&gt;
&lt;p&gt;Do you have any suggestions to avoid this error, or allow the library to more gracefully handle this situation?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9328477</link><pubDate>Fri, 16 Jan 2009 17:50:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9328477</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;Further to my previous comment about dragging Outlook messages, I have noticed the same behavior when dragging text over the sample form. &amp;nbsp;Just to add to it, as long as the textbox that accepts text is the first textbox the mouse goes after entering the form, it will still allow drop. &amp;nbsp;However, if either the HTML or File textboxes are dragged over first, then the text textbox will not accept drops.&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9398612</link><pubDate>Thu, 05 Feb 2009 17:33:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9398612</guid><dc:creator>folken</dc:creator><description>&lt;p&gt;You were asking about why an alpha channel of 0 goes to black, but anything else works just fine. I don't know the answer, but venturing a guess I say it's probably a divide by 0 problem buried way down in windows. &lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9402105</link><pubDate>Fri, 06 Feb 2009 16:40:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9402105</guid><dc:creator>Girly</dc:creator><description>&lt;p&gt;How do I use this great preveiw when I want to pass my own custom data in the DataObject? If I try to use SetData I get: &amp;quot;Cannot SetData on a frozen OLE data object.&amp;quot; The OLE data object is the custom dataobject. Supporting preview for drag from windows is great but I would like to support my own formats as well and pass data around.&lt;/p&gt;
&lt;p&gt;I'm also struggeling with the position of the drag icon in my WPF application. But hopefully a little bit more testing will solve that.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9432554</link><pubDate>Thu, 19 Feb 2009 00:21:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9432554</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Nishita, the easiest thing for you would be to take a look at the SWF example from Part 3. If you are going with your own implementation, using this post as a guide, you'll need to implement the COM interface, and then learn to use the system IDragSourceHelper and IDropTargetHelper. Otherwise, just drop DragDropLib into your project (or compile and reference the appropriate DragDropLib.dll) and use it like the example uses it.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9432561</link><pubDate>Thu, 19 Feb 2009 00:24:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9432561</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Farhan, you have all the control when creating the drag image. I tried to supply some helpers to make it easy, you may just need to pull it apart and figure out how to generate the bitmap as desired.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9432588</link><pubDate>Thu, 19 Feb 2009 00:35:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9432588</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;James, sorry, no, I don't have a C++ version of this.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9432591</link><pubDate>Thu, 19 Feb 2009 00:36:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9432591</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Kirk, I think I saw that bug in the past. Did you ever resolve it? I have not.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9432593</link><pubDate>Thu, 19 Feb 2009 00:37:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9432593</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Diego, sorry, I'm not your man for that issue.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9432595</link><pubDate>Thu, 19 Feb 2009 00:41:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9432595</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Girly, you need to use SetDataEx, which is implemented as an extension methods to the appropriate DataObjects. This is a result of us providing the DataObject with a custom implementation. This is explained pretty thoroughly in Part 3.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9518122</link><pubDate>Mon, 30 Mar 2009 11:10:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9518122</guid><dc:creator>Karin</dc:creator><description>&lt;p&gt;I have a similar issue as did Scott, with a Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC)) in IDropTargetHelper.DragEnter. It occurs when there is a standard drag and drop (not using the library) with text data. Such as this: System.Windows.DragDrop.DoDragDrop((ListView)sender, lc.Text, DragDropEffects.Copy);&lt;/p&gt;
&lt;p&gt;This results in that I can not drop the text. I can catch the exception and bypass it but it does not seem right that I should get the exception.&lt;/p&gt;
&lt;p&gt;It's a bit strange since dragging from an input field do work (the built in support in the control). But when I do it in code I get the exception.&lt;/p&gt;
&lt;p&gt;Scott did you solve this?&lt;/p&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9523791</link><pubDate>Tue, 31 Mar 2009 22:56:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9523791</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Karin, I'll see if I can reproduce your error and get back to you.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9799363</link><pubDate>Tue, 23 Jun 2009 15:51:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9799363</guid><dc:creator>Rob</dc:creator><description>&lt;P&gt;Scott, Karin:&lt;/P&gt;
&lt;P&gt;I think that solution for this "Invalid FORMATC" problem is testing presence of DragImageBits data&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (e.Data.GetDataPresent("DragImageBits"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DropTargetHelper.DragEnter(sender as Control, e.Data, new Point(e.X, e.Y), e.Effect);&lt;/P&gt;
&lt;P&gt;It works for me. Can you confirm this Adam?&lt;/P&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9801497</link><pubDate>Wed, 24 Jun 2009 16:43:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9801497</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Thanks, Rob. I hadn't gotten to this, but that sounds right. You should only call DropTargetHelper.DragEnter if the DragImageBits are present. I'm surprised the shell's implementation of IDropTargetHelper doesn't play nicer, but this check could potentially be added to the DropTargetHelper.DragEnter method wrapper.&lt;/p&gt;
</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9927023</link><pubDate>Sun, 22 Nov 2009 22:51:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9927023</guid><dc:creator>Thierry</dc:creator><description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We store various files in our database and I have a grid in my application in which I want to drag one or more records to windows explorer but only if the target is windows explorer, I would like to have a way for my application to know that the operation was successful and then only start extracting files from my database (when the drop event actually occured in explorer) and start copying them to the specific location where the "records" were dropped in the specific windows explorer.&lt;/P&gt;
&lt;P&gt;I thought I could maybe put a dummy file in the DoDragDrop event and when the event is returned, delete it and start extracting the files but right now I have no way of knowing a) if it was a successful target and b) what is the path of the windows explorer it was dropped on?&lt;/P&gt;
&lt;P&gt;Is this possible? Do you have any pointers?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Thierry&lt;/P&gt;</description></item><item><title>re: Shell Style Drag and Drop in .NET (WPF and WinForms)</title><link>http://blogs.msdn.com/adamroot/pages/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx#9927302</link><pubDate>Mon, 23 Nov 2009 15:33:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9927302</guid><dc:creator>adamroot</dc:creator><description>&lt;p&gt;Thierry, I'm not sure actually. Usually, it is the target that decides whether to accept the dragged data.&lt;/p&gt;
</description></item></channel></rss>