Using Visual Studio 2015, I am writing a Windows Form application in C #. I am using the following code:
FolderBrowserDialog dialog = new FolderBrowserDialog();
dialog.RootFolder = Environment.SpecialFolder.MyComputer;
On my development machine (Windows 8.1), this works as expected, FolderBrowserDialogappearing with "This Computer" as the root directory.
However, when I transfer the program to a Windows 10 machine (I tried both pro and the home version of Windows 10), it FolderBrowserDialogopens with "Desktop" in the root directory.
Is there any other SpecialFolderthat I should use for Windows 10?
source
share