Point

This method returns, as a long integer, the red-green-blue (RGB) color of the specified point on a Form object.

Syntax

object.Point(x, y)

Parameters

x, y
Required. Single-precision values that indicates the horizontal (x-axis) and vertical (y-axis) coordinates of the point in the ScaleMode property of the Form. Parentheses must enclose the values.

Return Value

Long specifying the RGB color of a point.

Remarks

If the point referred to by the x-coordinate and y-coordinate is outside object, the Point method returns -1.