The code below draws a simple line, this is currently in 'Form1_Paint'
I would like to be able to add this to a seperate class and build on it and then call it when needed, how do l do this?
I would like to be able to add this to a seperate class and build on it and then call it when needed, how do l do this?
VB.NET:
Dim blackPen As New Pen(Color.Black, 3)
' Draw line to screen.
e.Graphics.DrawLine(blackPen, 5, 20, 5, 100)