How to drop and/or image or image file onto form
Posted on 2011-09-16
I have a .Net 4 Windows Forms project created with Visual Studio 2010 using c#.
I have a form which I would like to be able to drag and drop an image onto to be displayed and saved to a file. This will allow the user to drag an image (of any normal type jpg, gif, etc) from a web site and drop it onto the .Net form where it will be saved to file and displayed. The user should alsobe able to browse to a file in Windows Explorer and drag an image file onto the form for similar results.
I would be happy for the user to have to drop the image onto a PictureBox or similar control.