AutoSize property (Main Control)

Visual Basic example
Visual C++ 4.0 example
Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax BOOL AutoSize

Overview:  Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Automatically sizes the Main Control to the size of the bitmap, if possible.

If the bitmap is larger than the current window, the control is resized to fit the image, regardless of the size of its container.

This property is effective when loading a bitmap and when taking any action (such as rotating a bitmap) that changes the dimensions of the bitmap.

Setting

Description

TRUE

Automatically size of the LEAD control to the size of the bitmap, if possible.

FALSE

The size of the bitmap does not affect the size of the LEAD control.

See Also

Elements:  AutoRepaint property, AutoSetRects property, PaintSizeMode property, PaintZoomFactor property, AutoScroll property

Topics:  Raster Images: Displaying Images