Click to See Complete Forum and Search --> : Drop & drag
Dejvi
Feb 24th, 2001, 03:31 PM
How to make the drop & drag effect, that is visible only on my app as well as outside of it.
What is it that you want to drag? Controls? Files? your Form? Please explain.
Dejvi
Feb 25th, 2001, 08:41 AM
I would like it to be like dragging a control (not to drag a control, just to look like it), but not only in my app. If I use the built-in Drag method of a control it shows a 'no no' sign whenever mouse slides out of the container(form), and I can't fix that.
See if this works.
Dim OldX As Single
Dim OldY As Single
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
OldX = X
OldY = Y
End If
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then Picture1.Move Picture1.Left + (X - OldX), Picture1.Top + (Y - OldY)
End Sub
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.