Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim x1, y1, x2, y2, fois Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) fois = fois + 1 If fois Mod 2 = 1 Then x1 X: y1 Y Else x2 X: y2 Y Line (x1, y1)-(x2, y2) End If End Sub