I've been trying to figure this out for a while but I haven't been able to figure it out.
I want to draw a line using 'Form1 Events' and the Declaration 'Paint'
So I want this:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
e.Graphics.DrawLine(Pens.Black, 0, 0, 100, 100)
End Sub
To happen when I click button1.
I've tried a whole bunch of things but none have worked. Thanks in advance guys. I can clarify further if you need it.
I want to draw a line using 'Form1 Events' and the Declaration 'Paint'
So I want this:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
e.Graphics.DrawLine(Pens.Black, 0, 0, 100, 100)
End Sub
To happen when I click button1.
I've tried a whole bunch of things but none have worked. Thanks in advance guys. I can clarify further if you need it.