BUG: VB intrinsic control DirListBox cannot display directories like C:\.NET Show

Edward 2001-05-16 11:32:00
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!

...全文
41 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

743

社区成员

发帖
与我相关
我的任务
社区描述
VB 版八卦、闲侃,联络感情地盘,禁广告帖、作业帖
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧