advertisement

Find Code  Advanced Search   

Free Newsletters:   
browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Folder Browsing Control

Author: Tom de Lange
Category: Files and Directories
Type: Controls
Difficulty: Advanced

Version Compatibility:  Visual Basic 5   Visual Basic 6

More information: 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.

This code has been viewed 131167 times.

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.

code/ArielBrowseFolder.zip

Sponsored Links