Non, mais quand la personne dessine avec la souris, tu surveilles bien sa souris ?
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionEnregistrer les coordonnées d'une ligne dessinée dans un picturebox dans base de donnée
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint la tu écrire le code de la ligne ou tu appelles la sub qui trace les lignes End Sub
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawLine(Pens.Aquamarine, 10, 10, Me.Width, Me.Height) End Sub
Private Sub Dessiner(ByVal gr As System.Drawing.Graphics) Dim mypen As New Pen(Color.Aquamarine, 2) gr.DrawLine(mypen, 10, 10, Me.Width, Me.Height) End Sub Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dessiner(e.Graphics) End Sub
Private Sub pic1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles pic1.Paint e.Graphics.DrawLine(Pens.Aquamarine, 10, 10, Me.Width, Me.Height) End Subou
Private Sub pic1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles pic1.Paint Dessiner(e.Graphics) End Sub