Private Sub openfile_Click()
Dim thefilename
CommonDialog1.Filter = "文本文件(*.TXT)|*.txt"
CommonDialog1.ShowOpen
thefilename = CommonDialog1.filename
If thefilename = "" Then
Else
filename.Text = thefilename
filename.ToolTipText = thefilename
End If
End Sub作者: huanghai 时间: 2003-11-1 19:10
可以使用FSO操作或者直接使用OPEN