Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomShellBrowserDialog.Path Property

Specifies the path to the current shell item (standard or virtual shell item).

#Declaration

Delphi
property Path: string read; write;

#Property Value

Type
string

#Remarks

A standard shell item’s path can be specified in two ways:

  • as a full path, including a sequence of all folders required for accessing the required shell item from the shell root.

Example:

cxShellBrowserDialog1.Path := 'C:\Documents and Settings\Administrator\My Documents\My Pictures';
  • as a relative path, providing access to shell items within a specified folder.

Example:

cxShellBrowserDialog1.Path := 'My Pictures';

In addition to standard shell items, the Path property allows users to access virtual shell items which do not use physical storage. Examples of virtual shell items include:

  • Network printers
  • Other networked computers
  • Control Panel applications
  • Recycle Bin

To access virtual shell items, specify one of the following path prefixes before the virtual shell item name:

The code snippet below shows how to access the “Recycle Bin” virtual shell item using both the absolute and relative virtual path prefixes.

Delphi
cxShellBrowserDialog1.Path := cxShellObjectInternalAbsoluteVirtualPathPrefix + '\Recycle Bin';
cxShellBrowserDialog1.Path := cxShellObjectInternalRelativeVirtualPathPrefix + '\Recycle Bin';
See Also