如何实现选择目录对话框?我要得到当前选择的目录。
System.Windows.Forms.FolderBrowserDialog openDialog=new FolderBrowserDialog();
DialogResult DiaResult=openDialog.ShowDialog();
string strPath=openDialog.SelectedPath;
System.Windows.Forms.FolderBrowserDialog openDialog=new FolderBrowserDialog();
DialogResult DiaResult=openDialog.ShowDialog();
string strPath=openDialog.SelectedPath;
.net2002没有目录对话框控件,.net2003有。下面这个网站上有国外做的目录对话框控件for.net2002。我用过,不错的。
http://www.up2soho.com/csharp/showart.asp?art_id=24&cat_id=1