Skip to content

DevExpress-Examples/winforms-pictureedit-drag-images-from-windows-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Picture Editor - Drag-and-drop images from Windows Explorer

This example demonstrates how to drag images from Windows Explorer onto the WinForms PictureEdit. The example creates a DragDropProvider class and calls its EnableDragDrop method:

private void OnLoad(object sender, EventArgs e) {
    provider = new DragDropProvider(pictureEdit1);
    provider.EnableDragDrop();
}

The example also demonstrates how to drag and drop images displayed on buttons.

private void OnSimpleButtonMouseDown(object sender, MouseEventArgs e) {
    SimpleButton btn = sender as SimpleButton;
    pictureEdit1.DoDragDrop(btn.Image, DragDropEffects.Copy);
}

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)