//選擇資料夾路徑 FolderBrowserDialog path = new FolderBrowserDialog(); path.ShowDialog(); this.txtPath.Text = path.SelectedPath; //選擇檔案路徑 OpenFileDialog file = new OpenFileDialog(); file.ShowDialog(); this.txtFile.Text = file.SafeFileName;
文章標籤
全站熱搜
//選擇資料夾路徑 FolderBrowserDialog path = new FolderBrowserDialog(); path.ShowDialog(); this.txtPath.Text = path.SelectedPath; //選擇檔案路徑 OpenFileDialog file = new OpenFileDialog(); file.ShowDialog(); this.txtFile.Text = file.SafeFileName;