[RESOLVED] Selecting and drag/drop multiple images and labels.
How would you go about selecting multiple images and labels for dragging and dropping?
I know how to drag and drop a single object, but I’m not shore how you would go about dragging and dropping multiple images and labels as you would with icons on your desktop with the selection box and highlighting.
Also, is there more than one way of doing this and which way is the best?
Re: Selecting and drag/drop multiple images and labels.
Depending on how you have your controls etc, this might work.
Note: to select a control, you need to right click it. Selected controls have a "-1" in their caption.
Last edited by Andrew G; Oct 29th, 2006 at 09:13 PM.
Reason: Ooops forgot to attach
Re: Selecting and drag/drop multiple images and labels.
Thank you, that jogged my mind and I was almost able to come up with what I needed.
I say almost because I have a major bug with my moving code (the formula to determine the controls new position) and I can't quite seem to figure out how to fix it/code it right.
Dose anyone have an idea how to fix it???
buggy movement code:
VB Code:
Private Sub Form_MouseMove(button As Integer, shift As Integer, x As Single, y As Single)
Static mousex As Single, mousey As Single
Select Case button
Case 1
For i = LBound(Selection()) To UBound(Selection())
I have attached the whole project (thus far) for people to play around with; right click and drag on the form to select, left click on the form and drag to move.