SetScale

This method defines the coordinate system for a Form or PictureBox control.

Syntax

object.SetScale x1, y1, x2, y2

Parameters

object
Optional. Object expression that evaluates to a Form or PictureBox control. If object is omitted, the Form object with the focus is assumed to be object.
x1
Optional. Horizontal component of the coordinate system’s upper-left corner.
y1
Optional. Vertical component of the coordinate system’s upper-left corner.
x2
Optional. Horizontal component of the coordinate system’s lower-right corner.
y2
Optional. Vertical component of the coordinate system’s lower-right corner.

Return Value

None.

Remarks

Either all parameters must be supplied, or the SetScale method must be used without parameters. Setting a custom scale sets the ScaleMode property to 0 (vbUser). Using SetScale with no parameters restores the default coordinate system and sets the ScaleMode to 1 (vbTwips).