Hi
I am new to .NET and trying to draw a line on a picture box.
I have just the following code:
Option Strict On
Imports System.Drawing.Drawing2D
Public Class frmMain
Inherits System.Windows.Forms.Form
Dim graphics1 As Graphics
+ Windows Form Designer generated code
End Class
It is giving me an error on the statement: "Dim graphics1 As Graphics" saying "Type expected".
Cannot figure it out what's wrong.
Thanks,
I am new to .NET and trying to draw a line on a picture box.
I have just the following code:
Option Strict On
Imports System.Drawing.Drawing2D
Public Class frmMain
Inherits System.Windows.Forms.Form
Dim graphics1 As Graphics
+ Windows Form Designer generated code
End Class
It is giving me an error on the statement: "Dim graphics1 As Graphics" saying "Type expected".
Cannot figure it out what's wrong.
Thanks,