method Thumbnail.ExecuteContextCommand (FileName as String, Folder as Boolean, Command as String)

Executes a context menu command.

TypeDescription
FileName as String A string expression that indicates the file whose context menu is invoked.
Folder as Boolean A boolean expression that indicates whether the FileName points to a folder or to a file.
Command as String A string expression that indicates the name of the command being invoked or a string expression that indicates the identifier of command being invoked.

The ExecuteContextCommand method executes the object's context menu command. The control returns no error, if the command is not found. Use the AllowContextMenu property to disable the control's context menu when user right clicks a file in the browser.

Here's the list of the identifiers for some known items in the object's context menu :