Folder Browsing Control
Category:Files and Directories
Author:Tom de Lange
Version Compatibility: Visual Basic 5
A user control resembling a combobox. When the dropdown button is clicked, a browse through a folder treeview to select a directory is displayed. Uses the SHBrowseForFolder function, amongst other APIs. A call back procedure is implemented showing the currently selected folder in the browse for folder dialog. User has the choice to select any system folder (Desktop, My Computer etc) as the root, or a custom folder. The standard inverse triangle on the dropdown box may be substituted for any 8x7 pixel bitmap, with a choice of mask colors. Full set of events, click() upon dialog close, Change() and DropDown() prior to opening of the dialog. Source also implements BitBlt() API function to copy transparent images.
Full source & test program included. Note: You must register the .ocx in the release folder using regsvr32 before using the test project.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.