Dim Px As Single Dim Py As SinglePrivate Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) MsgBox X & "/" & Y End SubPrivate Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) Px = X Py = Y Form_MouseDown 1, 0, Px, Py End Sub
Dim Py As SinglePrivate Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
MsgBox X & "/" & Y
End SubPrivate Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Px = X
Py = Y
Form_MouseDown 1, 0, Px, Py
End Sub