See Also
Applies To
OLE control.
Description
Provides access to one or more additional features of the OLE control.
Syntax
[form.]ole.MiscFlags = setting
Settings
The MiscFlags settings are:
Constant Value Description
OLE_MISCFLAG_MEMSTORAGE 1 Causes the control to use memory to store the object while it is loaded.
OLE_MISCFLAG_DISABLEINPLACE 2 Overrides the control's default behaviour of allowing in-place activation for objects that support it.
Remarks
The MEMSTORAGE flag setting is faster than the default, which is to store it on disk as a temporary file. This setting can, however, consume 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 editing, you can use the DISABLEINPLACE 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 = OLE_MISCFLAG_MEMSTORAGE Or OLE_MISCFLAG_DISABLEINPLACE