我理解楼主的意思,但我忘了VB里有没有类似C#的FolderBrowseDialog,楼主的意思是出一个文件夹选择对话框,选中之后得到路径.
嘿嘿,看代码:
一个驱动器列表,一个文件夹列表,一个按钮,试一下吧^_^
================================
Option Explicit
Dim path As String
Private Sub Command1_Click()
MsgBox path
End Sub
Private Sub Dir1_Change()
path = Dir1.path
End Sub
Private Sub Drive1_Change()
Dir1.path = Drive1.Drive
End Sub
===============================