all groups > c# > march 2007 >
You're in the

c#

group:

Drag/Drop onto Picture Control


Re: Drag/Drop onto Picture Control Ben Rush
3/24/2007 1:02:02 PM
c#: Well, you'll have to handle the drag and drop effect which is easy and very
well documented online:

http://www.csharphelp.com/archives2/archive365.html

You'll also have to handle generating of the thumbnail, which is also easy
and very well documented online:

http://msdn2.microsoft.com/en-us/library/system.drawing.image.getthumbnailimage.aspx

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog



[quoted text, click to view]

Drag/Drop onto Picture Control Jeff Williams
3/24/2007 10:30:14 PM
I am trying to get the following to work so would like some guidance on
how to achieve what I need.

1. I have a form which has a tab control.
2. On the 4th TabPage I have 5 picture boxes.
3. These picture boxes are normally populated from a file(s) with a set
path and filename.

I have this working

I now want to be able to drag a jpg file from windows explorer onto any
picture box which does not contain an existing image and have the
following occur.

4. This file is moved from its current location to a set path and
filename I give it.
5. The image is displayed in the Picture box.

I would appreciate any help on the processes need to perform 4 and 5.

Regards
Jeff

AddThis Social Bookmark Button