ScaleMode

This property returns and sets a value that indicates the unit of measurement for coordinates of an object. Use this property in conjunction with graphics methods or with the positioning of controls.

Syntax

object.ScaleMode [= value]

Parameters

object
Object expression that evaluates to a PictureBox control or Form object.
value
Integer that specifies the unit of measurement. The following table shows the settings for value.
Constant
Setting
Description
vbUser 0 Indicates that one or more of the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties are set to custom values
vbTwips 1 (default) Twip (1,440 twips per logical inch; 567 twips per logical centimeter.
vbPoints 2 Point (72 points per logical inch)
vbPixels 3 Pixel (smallest unit of monitor resolution)
vbCharacters 4 Character (horizontal = 120 twips per unit; vertical = 240 twips per unit)
vbInches 5 Inch
vbMillimeters 6 Millimeter
vbCentimeters 7 Centimeter

Remarks

Using the related ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties, you can create a custom coordinate system with both positive and negative coordinates. These four Scale properties interact with the ScaleMode property in the following ways: