1
Answer

vb.net drawing a line does not work

Warren

Warren

11y
874
1
The following code will not work.  Iget errors on lines 4 and 5 GraphicsFun is underlined and the errors state that "Declaration expected"

There is no other code in this program. Option expliciit is on.
Public Class Form1
    Dim GraphicsFun As System.Drawing.Graphics
    Dim PenColor As New System.Drawing.Pen(System.Drawing.Color.Red)
    GraphicsFun = Me.CreatGraphics
    GraphicsFun.Drawline(penColor,(20 ,30, 100, 80)
End Class

W.
Answers (1)