Visual Basic Reference

Visual Studio 6.0

Action Property (OLE Container)

See Also    Example    Applies To

Sets a value that determines an action. Not available at design time.

Note   The Action property is included for compatibility with earlier versions. For current functionality, use the methods listed in Settings.

Syntax

object.Action = value

The Action property syntax has these parts:

Part Description
Object An object expression that evaluates to an object in the Applies To list.
Value A constant or integer specifying the type of action, as described in Settings.

Settings

The settings for value are:

Value Description Current method
0 Creates an embedded object. CreateEmbed
1 Creates a linked object from the contents of a file. CreateLink
4 Copies the object to the system Clipboard. Copy
5 Copies data from the system Clipboard to an OLE container control. Paste
6 Retrieves the current data from the application that supplied the object and displays that data as a picture in the OLE container control. Update
7 Opens an object for an operation, such as editing. DoVerb
9 Closes an object and terminates the connection to the application that provided the object. Close
10 Deletes the specified object and frees the memory associated with it. Delete
11 Saves an object to a data file. SaveToFile
12 Loads an object that was saved to a data file. ReadFromFile
14 Displays the Insert Object dialog box. InsertObjDlg
15 Displays the Paste Special dialog box. PasteSpecialDlg
17 Updates the list of verbs an object supports. FetchVerbs

18 Saves an object to the OLE version 1.0 file format. SaveToOle1File
Show: