Visual Basic Reference

Visual Studio 6.0

Point Method

See Also    Example    Applies To

Returns, as a long integer, the red-green-blue (RGB) color of the specified point on a Form or PictureBox. Doesn't support named arguments.


object.Point(x, y)

The Point method syntax has these parts:

Part Description
object Optional. An object expression that evaluates to an object in the Applies To list. If object is omitted, the Form object with the focus is assumed to be object.
x, y Required. Single-precision values indicating the horizontal (x-axis) and vertical (y-axis) coordinates of the point in the ScaleMode property of the Form or PictureBox. Parentheses must enclose the values.


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