質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top