编程论坛
注册
登录
编程论坛
→
VB.NET论坛
vb.net 如何用控件操作目录和文件夹?谢谢!
tlqxjzlq
发布于 2014-07-25 08:36, 595 次点击
控件怎么操作目录和文件夹?谢谢!
2 回复
#2
jianjunfeng
2014-07-29 16:42
Dim openFolder As FolderDialog = New FolderDialog
If openFolder.DisplayDialog = DialogResult.OK Then
TextBox1.Text = openFolder.Path.ToString
End If
#3
dota_asdf123
2014-08-04 21:07
Dim folderBrowserDialog As New FolderBrowserDialog
If folderBrowserDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then
TextBox1.Text = folderBrowserDialog.SelectedPath
End If
1