1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Private Sub arrivee_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Not jmfcoucou Then Exit Sub
arrivee.Text = arrivee.Text & copie.Text
copie.Visible = False
jmfcoucou = False
End Sub
Private Sub depart_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
With copie
.Text = depart.Text
.Left = X + depart.Left
.Top = Y + depart.Top
.Visible = True
End With
depart.DragBehavior = 1
jmfcoucou = True
End Sub
Private Sub depart_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Button = 1 Then
With copie
.Left = X + depart.Left
.Top = Y + depart.Top
End With
End If
End Sub
Private Sub UserForm_Activate()
copie.ZOrder
End Sub
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Button = 1 Then
With copie
.Left = X
.Top = Y
End With
End If
copie.Visible = False
copie.Text = ""
End Sub
Private Sub UserForm_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
copie.Visible = False
End Sub |
Partager