Unicode Controls & Classes for VB6 - Version 4

clsCommDialogs.ShowDir Function

Displays a dialog box that enables the user to select a folder.

Syntax
Public Function ShowDir (ByVal hwndParent As Long, _
Optional ByVal sStartFolder As String = "", _
Optional ByVal sTitle As String = "")
Parameters
Parameter Description
ByVal hwndParent As Long A handle to the owner window for the dialog box.
Optional ByVal sStartFolder As String = "" Specifies the location of the root folder from which to start browsing. Only the specified folder and its subfolders in the namespace hierarchy appear in the dialog box. This member can be NULL; in that case, the namespace root (the Desktop folder) is used.
Optional ByVal sTitle As String = "" String that is displayed above the tree view control in the dialog box. This string can be used to specify instructions to the user.
Remarks
Returns the chosen folder