Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Visual Basic Reference

Visual Studio 6.0

Line Control

See Also    Example    Properties    Methods    Events

A Line control is a graphical control displayed as a horizontal, vertical, or diagonal line.

Syntax

Line

Remarks

You can use a Line control at design time to draw lines on forms. At run time, you can use a Line control instead of, or in addition to, the Line method. Lines drawn with the Line control remain on the form even if the AutoRedraw property setting is False. Line controls can be displayed on forms, in picture boxes, and in frames. You can't use the Move method to move a Line control at run time, but you can move or resize it by altering its X1, X2, Y1, and Y2 properties. The effect of setting the BorderStyle property depends on the setting of the BorderWidth property. If BorderWidth isn't 1 and BorderStyle isn't 0 or 6, BorderStyle is set to 1.

Show:
© 2015 Microsoft