首页 > 代码库 > C# 选择文件夹

C# 选择文件夹

1  private void btnChoosePath_Click(object sender, EventArgs e)2         {3             FolderBrowserDialog fbd = new FolderBrowserDialog();4             fbd.Description = "请选择Web程序存放路径";5             if (DialogResult.OK == fbd.ShowDialog())6             {7                 tbPath.Text = fbd.SelectedPath;8             }9         }

 

C# 选择文件夹