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 }
2022-07-30 15:25:45
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 }