I want to show a Dialog where the user can select a folder.
MSDN features the following Snippet:
new System.Windows.Forms.FolderBrowserDialog();
Saying it lives in the following namespace and assembly:
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms.dll
I was unable to use the snippet because Forms
does not exist in the System.Windows
namespace. It was suggested that I am missing an assembly reference.
When I rightclick my project and choose Add->ProjectReference I see no references in the projects tab, none in the shared projects, none in Browse and a couple in COM. However, the closest I found was System_Windows_Forms
which does not solve this problem.
How can I add the required resource to the project or how else can I display the required SelectFolder Dialog?