dragging images

stuffradio
09-04-2006, 04:01 PM
How do you drag an image from one image box to another? Trying to make a chess board, so I have images that represent squares, than when you click it and move it to another square some events will happen. Please help

Cags
09-04-2006, 04:10 PM
Put simply you cannot exactly drag an image between two image boxes. There are a couple of options you can go for.

1. Have a picture box with the board in it, and a picture for each piece, then simply drag the picture box to over the other square.

2. You could go for the most customisable but complex option of simply drawing everything yourself using the Graphics object and keeping track of the locations of each piece.

3. Rather than dragging the piece allow them to click the square you wish to move to and then change the picture in that box.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum