1,451
社区成员
发帖
与我相关
我的任务
分享
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 Sub
Private 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