MiscFlags Property

       

Returns or sets a value that determines access to one or more additional features of the OLE container control.

Syntax

object.MiscFlags [ = value]

The MiscFlags property syntax has these parts:

Part Description
Object An object expression that evaluates to an object in the Applies To list.
Value An integer or constant specifying access to an additional feature, as described in Settings.

Settings

The settings for value are:

Constant Value Description
VbOLEMiscFlagMemStorage 1 Causes the control to use memory to store the object while it's loaded.
VbOLEMiscFlagDisableInPlace 2 Overrides the control's default behavior of allowing in-place activation for objects that support it.

Remarks

The vbOLEMiscFlagMemStorage flag setting is faster than the object's default action, which is to store it on disk as a temporary file. This setting can, however, use a great deal of memory for objects whose data requires a lot of space, such as a bitmap for a paint program.

If an object supports in-place activation, you can use the vbOLEMiscFlagDisableInPlace setting to force the object to activate in a separate window.

To combine values, use the Or operator. For example, to combine both flags, you could use this code:

Ole1.MiscFlags = vbOLEMiscFlagMemStorage Or _ vbOLEMiscFlagDisableInPlace