473,507 Members | 12,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drag/Drop onto Picture Control

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
Mar 24 '07 #1
1 1813
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/lib...nailimage.aspx

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

"Jeff Williams" <je***********@hardsoft.com.auwrote in message
news:13*************@corp.supernews.com...
>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


Mar 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2632
by: Colin Young | last post by:
I've got a owner-drawn listview control that displays images and now I'm trying to implement drag and drop so I can drag images from the control and drop them onto other applications. So far if I...
0
2588
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
3
2192
by: Fred R | last post by:
I'm designing an app in Access 97 that will facilitate the uploading of records and images to a website. The user selects the image thumbnails from the file system and drags them into the app....
1
1556
by: Greg | last post by:
I have a custom control called PageBanner which is compiled into a DLL and then put into the toolbox. It shows like I would expect it to in the toolbox, and I can drag and drop it onto a form. ...
0
482
by: ViRi | last post by:
I am currently experimenting a bit with AxMicrosoft.MediaPlayer.Intero­p.AxWindowsMediaPlayer and so far, most has gone well. Currently, i would like to add drag-and-drop functionality to the...
0
2166
by: joey.powell | last post by:
I have a Windows Forms application where I need to be able to drag and then drop onto a datagridview control. I already have the code necessary to make the drag part work. I am having problems,...
0
910
by: geojf3 | last post by:
Hi all, I am trying to make a Battleship type game. For the user's ship board, I created a picture box that has 100 (10 x 10) image controls. I have a second picture box that has the picture of...
0
1708
by: Truevision .Net | last post by:
Hi, I have a problem with drag and drop functionality when it comes to dropping pictures from sources like for example internet explorer and the webbrowser control. Dragging and dropping from...
0
1722
by: munishbatra2002 | last post by:
hi all, we are using a gridview and a treeview control ... we want to drag a row from gridview control and drop it onto treeview control on a web page... we are using C# ASP.NET ... can anyone...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.