I’m trying to do this
FolderBrowserDialog dlg = new FolderBrowserDialog();
dlg.RootFolder = "C:\SomeUserSelectedFolder";
But RootFolder is a System.Environment.SpecialFolder.
Does this mean I can only set that to places like MyDocuments or the Desktop?!?
That’s correct: if the assigned value of
RootFolderis not one of theEnvironment.SpecialFoldervalues then an InvalidEnumArgumentException is raised.You can set SelectedPath, though: