BUG: VB intrinsic control DirListBox cannot display directories like C:\.NET Show
It's really interesting that VB DirListBox just ignores those folders with a
leading dot (.) in their names.
Code snippet:
' First go to the DOS command line window if you have Windows ME/Windows
2000
' installed on your machine, since I also find out that explorer.exe in
' these two excellent OSes simply refuses to create a folder with a leading
dot (.)!
' Then create a directory, say "C:\.NET Show"
Private Sub Command1_Click()
Dir1.Path = "C:\"
End Sub
The result is surprising enough! The DirListBox Dir1 does not show the
folder '.NET Show' at all. But if you change the above code to:
Dir1.Path = "C:\.NET Show"
Dir1 shows subfolders and files in C:\.NET Show, if any.
Enjoy!