In this section:
You can place vertical or horizontal lines on your form for visual effect, for example, to separate groups of controls.
Note: You can only draw horizontal or vertical lines.
When you select your line, you will see a list of line properties in the property sheet. Changing these properties will change what your line looks like and what it does at run time.
Many of the styling properties can also be changed using a Cascading Style Sheet. For more information on Cascading Style Sheets, see Using Cascading Style Sheets.
Choose your property based on the task you wish to perform:
If you want to change the name of the line that identifies it to the procedure, use the (Name) Property. For more information, see the (Name) Property.
If you want to change the size of the location or size of the line, use a style sheet or resize the line directly in the form. You can also use the Bottom Property, Left Property, Right Property, and Top Property.
If you want to make the line inactive or make it invisible, use the Enabled Property to determine whether the is active or not. If the line is inactive, nothing will happen when the end user clicks it. You can also use the Visible Property to determine whether the line is visible to the end user or use a style sheet. For more information, see the Enabled Property and the Visible Property.
If you want to change what the cursor looks like when it is on top of the line, use the CursorPointer Property or use a style sheet.
If you want to display a tooltip when the cursor is on the top of the line, use the ToolTipText Property.
If you want to assign a Help topic to the line, use the Help Property. For more information, see Assigning Help to Your Forms and Controls.
If you want to move the line to another layer, use the Layer Property. For more information, see Layering Controls.