Dim MovX As Long, MovY As Long Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 1 Then MovX = X: MovY = Y End If End SubPrivate Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 1 Then Me.Move Me.Left + (X - MovX), Me.Top + (Y - MovY) End If End Sub
Dim MovX As Long, MovY As Long
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
MovX = X: MovY = Y
End If
End SubPrivate Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Me.Move Me.Left + (X - MovX), Me.Top + (Y - MovY)
End If
End Sub