var dlgs = new System.Windows.Forms.OpenFileDialog();
dlgs.CustomPlaces.Clear();
var ListDrives = DriveInfo.GetDrives();
foreach (DriveInfo Drive in ListDrives)
{
if ((Drive.DriveType == DriveType.Fixed) && (Drive.Name != "C"))
{
dlgs.CustomPlaces.Add(Drive.Name);
}
dlgs.ShowDialog();
}
I am trying to open a file browser that should not have access to the local drive C so the user can select folders are files from rest of the local Drives like ("D" , "E").