Hey, I'm hoping that you guys can help me on this, I could probably find the answer if I probed hard enough but I'm a beginner and I don't know what keywords to search for, so maybe if you answer this you could help me out with that too.
I made a drawing application that draws lines, you click down and it records where your mouse is and draws a line to where you 'unclick' the mouse. Whenever I draw a new line, the previous one disappears, so I want to know how I can prevent this.
That draws the line (I took out some unrelated information), so maybe after it draws it could I store all of the lines drawn and then re-draw them after I make a new one?
Any help would be great.
I made a drawing application that draws lines, you click down and it records where your mouse is and draws a line to where you 'unclick' the mouse. Whenever I draw a new line, the previous one disappears, so I want to know how I can prevent this.
PHP:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
e.Graphics.DrawLine(Color, PointX1, PointY1, PointX2, PointY2)
End Sub
Any help would be great.