public static ChooseFolder ( String title ) : String | ||
title | String | the title of the choose folder dialog |
return | String |
public static String ChooseFolder(String title)
{
FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog();
folderBrowserDialog1.Description = title;
folderBrowserDialog1.ShowNewFolderButton = true;
DialogResult result = folderBrowserDialog1.ShowDialog();
if (result == DialogResult.OK)
{
return folderBrowserDialog1.SelectedPath;
}
return null;
}
/// <summary>
FolderHelper::ChooseFolder ( String title, |