Tag Archives: drag source

Drag and drop images while displaying a preview in C#

The example Drag and drop images in C# explains how to drag and drop images. See that example for the basic ideas. (Pay special attention to the second paragraph, which discusses the AllowDrop property for the PictureBox control.) This example … Continue reading

Posted in Drag and Drop, graphics, image processing, interoperability | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Drag and drop text with feedback in C#

These examples explain the basics of drag and drop: Drag and drop text in C# Drag and drop images in C# Those examples use these methods and events: The DoDragDrop method to start a drag The DragEnter event to tell … Continue reading

Posted in Drag and Drop, interoperability | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Drag and drop images in C#

This example shows how to drag and drop images in C#. The example Drag and drop text in C# explains basic drag and drop operations. See that example for the fundamentals. One of the first things you must do before … Continue reading

Posted in Drag and Drop, graphics, image processing, interoperability | Tagged , , , , , , , , , , , , , , | 6 Comments

Drag and drop text in C#

This example shows how to let a program drag and drop text both between its controls and with drag and drop enabled controls in other applications. First, to receive a drop, you must set a control’s AllowDrop property to true. … Continue reading

Posted in Drag and Drop, interoperability | Tagged , , , , , , , , , , | 2 Comments