Skip to content

CommonDialogBrowseFolderConstants Enumeration

Description

Options for the BrowseFolder dialog box.

Members

Member Description
xtpBFReturnOnlyFSDirs Only return file system directories. If the user selects folders that are not part of the file system, the OK button is grayed.
xtpBFDontGoBelowDomain Do not include network folders below the domain level in the dialog box's tree view control.
xtpBFStatusText Include a status area in the dialog box. The callback function can set the status text by sending messages to the dialog box. This flag is not supported when xtpBFNewDialogStyle is specified.
xtpBFReturnFSAncestors Only return file system ancestors. An ancestor is a subfolder that is beneath the root folder in the namespace hierarchy. If the user selects an ancestor of the root folder that is not part of the file system, the OK button is grayed.
xtpBFEditBox Include an edit control in the browse dialog box that allows the user to type the name of an item.
xtpBFNewDialogStyle Shell Version 5.0. Use the new user interface. Setting this flag provides the user with a larger dialog box that can be resized and has several new capabilities.
xtpBFBrowseIncludeURL Shell Version 5.0. The browse dialog box can display URLs. The xtpBFUseNewUI and xtpBFBrowseIncludeFiles flags must also be set. The browse dialog box displays URLs only if the folder that contains the selected item supports URLs.
xtpBFUseNewUI Shell Version 5.0. Use the new user interface, including an edit box. This flag is equivalent to xtpBFEditBox combined with xtpBFNewDialogStyle.
xtpBFUAHint Shell Version 6.0. When combined with xtpBFNewDialogStyle, adds a usage hint to the dialog box, in place of the edit box. xtpBFEditBox overrides this flag.
xtpBFNoNewFolderButton Do not include the New Folder button in the browse dialog box.
xtpBFNoTranslateTargets Shell Version 6.0. When the selected item is a shortcut, return the PIDL of the shortcut itself rather than its target.
xtpBFBrowseForComputer Only return computers. If the user selects anything other than a computer, the OK button is grayed.
xtpBFBrowseForPrinter Only allow the selection of printers. If the user selects anything other than a printer, the OK button is grayed.
xtpBFBrowseIncludeFiles Shell Version 4.71. The browse dialog box displays files as well as folders.
xtpBFShareable Shell Version 5.0. The browse dialog box can display sharable resources on remote systems. This is intended for applications that want to expose remote shares on a local system. The xtpBFNewDialogStyle flag must also be set.
xtpBFBrowseFileJunctions Windows 7 and later. Allow folder junctions such as a library or a compressed file with a .zip file name extension to be browsed.

Remarks

These flags are used to set options for a BrowseFolder dialog using the CommonDialog.Flags when the CommonDialog.ShowBrowseFolder method is called.

You can set more than one flag for a dialog box using the Or operator. For example:

CommonDialog1.Flags = xtpBFNoNewFolderButton Or xtpBFEditBox

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.