关于VB6.0 DriveListBox 组件问题

Private Sub Drive1_Change()
?????????????????????????
End Sub
打开磁盘,中间该写什么代码?
详细点。一看就明白的

一般DriveListBox磁盘控件都结合DirListBox以及FileListBox控件一起使用,(结果如图):

你的代码如下:

Private Sub Drive1_Change()

  Dir1.Path = Drive1.Drive    '你需要的是这行代码

End Sub

Private Sub Dir1_Change()

  File1.Path = Dir1.Path

End Sub

温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜