DrawStyle

This property returns and sets a value that determines the line style for output from a graphics method.

Syntax

object.DrawStyle [= number]

Parameters

object
Object expression that evaluates to a PictureBox control or Form object.
number
Integer that specifies line style. The following table describes the settings for number.
Constant
Setting
Description
vbSolid 0 (default) Solid
vbDash 1 Dash

Remarks

If DrawWidth is set to a value greater than 1, DrawStyle setting 1 produces a solid line—the DrawStyle property value is not changed. If DrawWidth is set to 1, DrawStyle produces the effect described in the preceding table for each setting.