如何将目录路径放入文本框。通过openfiledialog发送文本,而不选择特定文件(。[英] How we can get directory path into textbox.text through openfiledialog without selecting a specific file(.

本文是小编为大家收集整理的关于如何将目录路径放入文本框。通过openfiledialog发送文本,而不选择特定文件(。的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我想在我的textbox.txt=MYCOMPUTER\\........\\ 中只获取目录路径,而不选择特定文件,只通过文件夹.

推荐答案

还有另一个控件,FolderBrowserDialog[^].这可能就是你所追求的.

本文地址:https://www.itbaoku.cn/post/1355782.html

问题描述

I want to get only directory path in my textbox.txt=MYCOMPUTER\\........\\ without selecting the specific file, only through folder.

推荐答案

There is another control, the FolderBrowserDialog[^]. That could be what you''re after.