DrawCircle

This method draws a circle or ellipse on a Form or PictureBox control.

Syntax

object.DrawCircle x, y, radius, [color], [ aspect]

Parameters

object
Optional. Object expression that evaluates to a Form or PictureBox control. If object is omitted, the Form with the focus is assumed to be object.
x
Required. Value that indicates the horizontal coordinate for the center point of a circle.
y
Required. Value that indicates the vertical coordinate for the center point of a circle.
radius
Required. Single value that indicates the radius of a circle.
color
Optional. Number that indicates the RGB color of a circle's outline. If omitted, the value of the ForeColor property is used.
aspect
Optional. Number that indicates the aspect ratio of a circle. The default value is 1.0, which yields a perfect circle. Other values draw an ellipse.

Return Value

None.

Remarks

The ScaleMode property of object determines the units of measure used. The FillColor and FillStyle properties of object determine how a circle is filled.

The DrawWidth property determines the width of the line used to draw a circle. The DrawMode and DrawStyle properties determine how a circle is drawn on the background.

On a form, DrawCircle resets the CurrentX and CurrentY properties to the center point specified by the parameters.