Dim DownX As Single
Dim DownY As Single
Option Explicit
Private Sub Frame1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DownX = X
DownY = Y
End Sub
Private Sub Frame1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Frame1.Move Frame1.Left + X - DownX, Frame1.Top + Y - DownY
End If
End Sub
Сейчас этот форум просматривают: Google-бот и гости: 192