0

The title states it all, I even tried adding using System.Windows.Forms but it still tells me that FolderBrowserDialog is not found.

Anything I can do? Any other way I can browse for directories?

Anatoliy Nikolaev
  • 21,814
  • 15
  • 65
  • 66
mnm
  • 101
  • 10

1 Answers1

2

You'll also need to add a reference to System.Windows.Forms.dll.

You can see this in the documentation for FolderBrowserDialog:

Namespace: System.Windows.Forms

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

The namespace is what you add via using, the assembly is what needs to be referenced.

Community
  • 1
  • 1
Reed Copsey
  • 539,124
  • 75
  • 1,126
  • 1,354