EXAMPLE:
BrowseForFolder browse = new BrowseForFolder();
string savePath = browse.Show();
Code://HAVE TO REFERENCE System.Design.dll using System; using System.Windows.Forms; using System.Windows.Forms.Design; namespace iCode_Library.NET { public class BrowseForFolder: FolderNameEditor { FolderNameEditor.FolderBrowser dirBrowser; public BrowseForFolder() { dirBrowser = new FolderNameEditor.FolderBrowser(); } public string Show() { //set the Description label dirBrowser.Description = "Select Folder"; dirBrowser.ShowDialog(); //show the Windows return dirBrowser.DirectoryPath + @"\"; // return whatever path choosen } } }




Reply With Quote