The dialog will return incorrect SelectedPath when:
- Once shown, click the New Folder button
- Type in some name for the new folder
- Click OK, **without pressing ente
Code used:
FolderBrowserDialog dialog = new FolderBrowserDialog();
dialog.ShowDialog();
Console.WriteLine(dialog.SelectedPath);
Any suggestions how to overcome this and get the correct path for the renamed new folder?
UPDATE I have tested this on Windows 7, 8.1 and 10. It is reproducible on 7 and 10, while in 8.1 it seems to work correctly.