You can use this property to get or set both the Top and Left properties by accessing a "point" structure.

Basic operation is the same as Top and Left except the value assigned is a complex object structure.

Provides the same GUI buffering to prevent flashing as Top and Left.

Parameters

control (string/object) - the name of the control to access or the object reference to a control previously retrieved with the "C.Item(name)" property (access via a control requires the control reference to be a visible control, a table would cause an error)

Return Value

point - representing the current x and y coordinates of the control.

Remarks

See C.TOP and C.LEFT

Examples

Example Setting a controls position normally and using this property

C.Left("Label1")=30
C.Top("Label1")=115
    '    OR
C.Location("Label1")=new point(30,115)    ' sets both

Example Reading Location Property

Dim p as point = C.Location("Label1")
Dim leftValue as integer = p.X    ' X holds the LEFT position in the point structure
Dim topValue as integer = p.Y            ' Y holds the TOP position in the point structure