如何使用FolderDialog控件选择路径 [英] How to select path using FolderDialog control
本文介绍了如何使用FolderDialog控件选择路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在C#中使用Folder Dialog Control选择路径,然后将路径传递给下面形成的目录名。
怎么做
字符串directoryName = @C:\Users \XXXXXX \Desktop \Refrigeration\RCA \ RCA001 \ Children;
I want to select the path using Folder Dialog Control in C# and then pass the path to the below formed directory name.
How to do this
String directoryName = @"C:\Users\XXXXXX\Desktop\Refrigeration\RCA\RCA001\Children";
推荐答案
我假设您指的是FolderBrowserDialog。
String directoryName = FolderBrowserDialog.SelectedPath;
I assume you are referring to the FolderBrowserDialog.
String directoryName = FolderBrowserDialog.SelectedPath;
这篇关于如何使用FolderDialog控件选择路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文