ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TShellBrowser.ObjectName

ObjectName contains the name of the current object

Syntax
Pascal
property ObjectName: string;
ShellBrowser.Folder := 'C:Windows';
ShellBrowser.ObjectName := 'Calc.exe';
ShellBrowser.InvokeContextMenuCommand('properties');

Use ObjectName to specify the current object or to retrieve the file system name of the current object. The method GetShellObjectName will return a "display friendly" name of the current object.

Exceptions 
Description 
If the given object cannot be found. 

These lines show the property page for the windows calculator:

ShellBrowser.ObjectName := 'C:WindowsCalc.exe';
ShellBrowser.InvokeContextMenuCommand('properties');

The ShellBrowser component automatically separates the path from the file name. This code does the same: