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
  • 22,370
  • 15
  • 69
  • 68
mnm
  • 101
  • 11

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
  • 554,122
  • 78
  • 1,158
  • 1,373