Esempio n. 1
0
        internal static string PickFolder(string path)
        {
            var folderDialogEx = new OpenFolderDialog();

            folderDialogEx.Title            = "Select a folder to extract to:";
            folderDialogEx.InitialDirectory = Environment.GetFolderPath(System.Environment.SpecialFolder.MyComputer);

            // Show the FolderBrowserDialog.
            bool result = folderDialogEx.ShowDialog();

            if (result)
            {
                path = folderDialogEx.FileName;
            }
            return(path);
        }