Warren

Warren

  • NA
  • 2
  • 2.6k

vb.net drawing a line does not work

Oct 6 2013 7:54 PM
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)