Example of DrawLine with SolidBrush Pen
 Private Sub SolidBrushExperiment()
   Dim g As Graphics
   Dim p1 As Pen
   Dim sb1 As New SolidBrush(Color.Blue)
   ' pb1 is a PictureBox defined in the project
   ' g = CreateGraphics() would draw on the Form
   ' Any control that defines a CreateGraphics function can 
   ' use Drawline and SolidBrush
   g = pb1.CreateGraphics()
   p1 = New Pen(sb1, 3)
   g.DrawLine(p1, 30, 50, 75, 90)
   g.Dispose()
 End Sub

Declare a SolidBrush and a Pen
Instantiate the Pen using the SolidBrush
Draw the line
Dispose of the object

The Pen is instantiated with the SolidBrush
The parameters are: Pen, x1, y1, x2, y2 - where x1,x2,y1,y2 are integers representing the starting and ending positions of the line.

The Pen object has two parameters: SolidBrush and Width
Import System.Drawing and put the method in your form code, call it from a form or button click event. It will paint on the form

10/16/2015
TheLonelyProgrammer.Net
Alone in a sea of non-programmers