Shell Style Drag and Drop in .NET – Part 3

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 Introduction In Part 1, Shell Style Drag and Drop in .NET (WPF and WinForms), I…

40

Shell Style Drag and Drop in .NET – Part 2

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 Introduction Last week, in Shell Style Drag and Drop in .NET (WPF and WinForms), I…

2

Shell Style Drag and Drop in .NET (WPF and WinForms)

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 drag and drop, you may…

31

Shell Style Drag and Drop in .NET – Part 3

In Part 1, Shell Style Drag and Drop in .NET (WPF and WinForms), I opened up the discussion about implementing a nice Shell style drag image, like that of Windows Explorer, in C#. This involved exposing a couple of COM interfaces to .NET, as well as implementing the COM IDataObject interface. In Shell Style Drag…

0

DragDropLib.cs (Part 2)

Back to Shell Style Drag and Drop in .NET – Part 2 namespace DragDropLib { using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; #region DataObject /// <summary> /// Implements the COM version of IDataObject including SetData. /// </summary> /// <remarks> /// <para>Use this object when using shell (or other unmanged) features /// that utilize the…

0

Shell Style Drag and Drop in .NET – Part 2

Last week, in Shell Style Drag and Drop in .NET (WPF and WinForms), I looked at hooking up the COM interfaces necessary to implement drag images using the Windows Shell. This week, I’m going to introduce some .NET 3.5 extensions (which can be easily converted into .NET 3.0 and earlier static helper functions) that reduce…

4

DragDropLib.cs

Back to Shell Style Drag and Drop in .NET using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace DragDropLib { #region DataObject /// <summary> /// Implements the COM version of IDataObject including SetData. /// </summary> /// <remarks> /// <para>Use this object when using shell (or other unmanged) features /// that utilize the clipboard and/or drag…

0

Shell Style Drag and Drop in .NET (WPF and WinForms)

If you’ve worked with .NET drag and drop, you may have noticed that the pretty images that Windows Explorer paints while dragging items does not come for free. In fact, by default, .NET will give you a rather ugly black and white cursor with the drag effect indicator (copy, move, none, etc). I wasn’t pleased…

0