Hi,
I am using a FolderBrowserDi alog to allow the user to select a folder
as follows:
FolderBrowserDi alog folderBrowserDi alog1 = new FolderBrowserDi alog();
folderBrowserDi alog1.RootFolde r =
System.Environm ent.SpecialFold er.MyComputer;
folderBrowserDi alog1.SelectedP ath = "D:\\";
folderBrowserDi alog1.ShowDialo g();
I want the dialog to come up with Local Disk(D:) selected, but instead
just My Computer is selected, though D: appears in the list.
If I replace "D:\\" with "C:\\", "E:\\" or "F:\\" it gets selected OK,
it's just drive D that it doesn't like. I can select drive D in the
dialog, and ShowDialog() returns with SelectedPath set to "D:\\"
correctly.
C:\ and D:\ are local hard drives, E:\ is a DVD-ROM and F:\ is a USB
flash card.
I hope someone here can help me, I can't understand what is going on.
Thanks,
A
I am using a FolderBrowserDi alog to allow the user to select a folder
as follows:
FolderBrowserDi alog folderBrowserDi alog1 = new FolderBrowserDi alog();
folderBrowserDi alog1.RootFolde r =
System.Environm ent.SpecialFold er.MyComputer;
folderBrowserDi alog1.SelectedP ath = "D:\\";
folderBrowserDi alog1.ShowDialo g();
I want the dialog to come up with Local Disk(D:) selected, but instead
just My Computer is selected, though D: appears in the list.
If I replace "D:\\" with "C:\\", "E:\\" or "F:\\" it gets selected OK,
it's just drive D that it doesn't like. I can select drive D in the
dialog, and ShowDialog() returns with SelectedPath set to "D:\\"
correctly.
C:\ and D:\ are local hard drives, E:\ is a DVD-ROM and F:\ is a USB
flash card.
I hope someone here can help me, I can't understand what is going on.
Thanks,
A
Comment