请问各位大佬 这些等号后面应该怎么填写呢
driveListBox1.Drive =
dirListBox1.Path =
fileListBox1.FileName =
filelistBox1.Pattern =
驱动器列表:DriveListBox
Drive1.Drive = "X" 设置X驱动器的起始驱动器
目录列表框控件:DirListBox
Dir1.Path = "E:/KuGou" 设置目录列表框的默认路径
文件列表框:FileListBox
一般DriveListBox和DirListBox结合使用,他们各自的代码为:
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
原文:https://blog.csdn.net/xudepeng0813/article/details/6095165
不建议使用这些控件,应该用 OpenFileDialog FolderBrowserDialog。
这几个控件是windows 3.x时代的界面的风格。也许你都不知道什么是windows 3.x
我特地找了一个windows 3.2的虚拟机给你演示下
OpenFileDialog的效果是(同样还是记事本这个程序的打开这个功能,在windows xp上)