|
|
01-05-2004, 05:35 PM | #1 |
Lively Member
Join Date: Oct 03
Posts: 89
|
Drag & drop (Swapping images) in
picturebox
Hello, I ran a search on drag and drop but didn't quiet find what I was looking for: I have 2 Pictureboxes where images are already preloaded into. However, if needed I will have to rearrange where each picture is (swapping) So if I click and drag the image from picturebox1 to picturebox2, I'd like the images to swap places; picturebox1's image get's dropped into picturebox2, and picturebox2's image get's dropped into picturebox1. So far, if I did the above example... picturebox1's image replaces picturebox2's image. Here's what I got: VB Code:
Any solutions to this problem? Thanks Chris |
01-05-2004, 05:51 PM | #2 |
PowerPoster
Join Date: Oct 02
Location: British Columbia
Posts: 7,182
|
In order to swap you need to temporarily
store the current picture before changing it. Note it may depend on your
method of loading the picture and the following assumes the same size
pictures VB Code:
|
01-05-2004, 06:13 PM | #3 |
Lively Member
Join Date: Oct 03
Posts: 89
|
great it works! thanks a lot
Last edited by Trancedified : 01-05-2004 at 06:21 PM. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |