Show Hidden Directories in DirListBox

While an Explorer style TreeView is favorable to using a DirListBox these days sometimes you may still have a DirListBox in your program. This code searches a DirListBox's Path for hidden directories and optionally system directories. It then adds each hidden folder to the DirListBox at the appropriate position. VB/Windows handles the added items without any further coding. Tested on 98, XP, Vista.

screenshot -

Searches a DirListBox's Path for hidden (and system) files. It then adds each hidden folder to the Dirbox at the appropriate position. VB/Windows handles the added items without any further coding.

Standard Module - ShowHiddenDirectories