You cannot do
using System.Windows.Forms.FolderBrowserDialog;
as it is a type and not a namespace. The namespace it belongs to is System.Windows.Forms
. Remove this line and if you want to instantiate a FolderBrowserDialog
and just make sure you have the line
using System.Windows.Forms;
and make a FolderBrowserDialog
like so:
var fbd = new FolderBrowserDialog();
All this is in contrast to Java, where you import types not use namespaces, which is where you may be going wrong - in Java you would do something like:
import System.Windows.Forms.FolderBrowserDialog;
and then be able to use it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…