Craig
Well-known member
This may be a very obvious question, is it possible to draw a diagonal line onto a form
Any help would be appreciated.
Any help would be appreciated.
I used this to test it.Overload resolution failed because no accessible 'DrawLine' accepts this number of arguments.
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
e.Graphics.DrawLine(50, 50, 300, 300)
End Sub
e.graphics.drawline(new pen(color.black),30,30,500,500)
dim MyPen as New Pen(color.black)
e.graphics.drawline(MyPen,30,30,500,500)