I'm using the FolderBrowserDialog class to allow a user to select a directory however if they want to create a director, I only want to allow it to be created under a specific directory. Can this be done with this class? my current code looks like this:
FolderBrowserDialog diag = new FolderBrowserDialog();
diag.SelectedPath = PubVars.locVault;
diag.ShowNewFolderButton = true;
DialogResult results = diag.ShowDialog();
if (results.Equals(DialogResult.OK))
{
lblNewVault.Text = diag.SelectedPath;
Environment.SpecialFolder rootFolder = diag.RootFolder;
}
Thanks for the help.