在C#的C/S开发中,用户可以自定义选择文件夹路径,效果如下:

C/S 选择文件夹路径

首先托一个folderBrowserDialog到From上

而后双击Select button 方法如下:

        private void btnSelectFolder_Click(object sender, EventArgs e)
        {
            folderBrowserDialog1.ShowDialog();
            txtFilePath.Text = folderBrowserDialog1.SelectedPath;
        }
就能实现如上效果.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-08-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案