|
-
Feb 24th, 2001, 04:31 PM
#1
Thread Starter
Junior Member
How to make the drop & drag effect, that is visible only on my app as well as outside of it.
-
Feb 24th, 2001, 05:55 PM
#2
What is it that you want to drag? Controls? Files? your Form? Please explain.
-
Feb 25th, 2001, 09:41 AM
#3
Thread Starter
Junior Member
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.
-
Feb 25th, 2001, 01:19 PM
#4
See if this works.
Code:
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|