Shape Control

This control is a graphical control used to create rectangles, squares, ovals, circles, rounded rectangles, or rounded squares.

Syntax

Shape

The Shape control supports the following properties:

BackColor, FillColor Shape
BackStyle FillStyle Tag
BorderColor ForeColor Top
BorderStyle Height Visible
BorderWidth Left Width
Container Name  
DrawMode Parent  

The Shape control supports the following methods:

Remarks

You can draw a Shape control in a container, but the Shape control cannot act as a container.

The effect of setting the BorderStyle property depends on the setting of the BorderWidth property. If BorderWidth is not 1 and BorderStyle is not 0 or 6, BorderStyle is set to 1.