The DrawWidth property specifies the width of the line for output from the graphics methods. The BorderWidth property specifies the outline thickness of line and shape controls.
The following procedure draws lines of several different widths.
Private Sub Form_Click ()
DrawWidth = 1
Line (100, 1000)–(3000, 1000)
DrawWidth = 5
Line (100, 1500)–(3000, 1500)
DrawWidth = 8
Line (100, 2000)–(3000, 2000)
End Sub
The results are shown in Figure 12.18.
Figure 12.18 The effects of changing the DrawWidth property
Figure 12.19 shows three shape controls with different BorderWidth values.
Figure 12.19 The effects of changing the BorderWidth property