【单选题】
在窗体上画一个名称为Drivel的驱动器列表框,一个名称为Dirl的目录列表框,一个名称为Filel的文件列表框,两个名称分别为Label1、Label2、标题分别为空白和“共有文件”的标签。编写程序,使得驱动器列表框与目录列表框、目录列表框与文件列表框同步变化,并且在标签Labell中显示当前文件夹中文件的数量。如图所示。
能够正确实现上述功能的程序是A.PriVate SubDir1_Change() FilePath=Dir1.PathEnd Sub Private SubDirvel_Change() Dir1.Path=DriveDrive LabelCaption=FileListCountEnd Sub
B.Private SubDir1_Change() FilePath=Dir1.PathEnd Sub Private SubDrivel_Change()DirPath=DriveDrive LabelCaption=FileListEnd Sub
C.Private SubDir1_Change() FilePath=Dir1.Path LabelCaption=File1.ListCountEnd Sub Private SubDrivel_Change() Dir1.Path=DriveDrive LabelCaption=Fil1.ListCountEnd Sub
D.Private SubDir1_Change() File1.Path=Dir1.Path LabelCaption=FileListEnd Sub Private SubDrivel_Change() Dir1.Path=DriveDriveLabelCaption=FileListEnd Sub