关于打开文件夹的初始路径
FolderBrowserDialog FolderOutput = new FolderBrowserDialog();//设定目录//FolderOutput.RootFolder = Environment.SpecialFolder.//默认文件夹我的电脑
FolderOutput.ShowNewFolderButton = true;//显示新建文件夹按钮
if (DialogResult.OK == FolderOutput.ShowDialog())
{
this.TB_Output.Text = FolderOutput.SelectedPath;//显示选定文件夹
}
请问RootFolder怎么才能自定义呢? --------------------编程问答--------------------
FolderBrowserDialog FolderOutput = new FolderBrowserDialog();//设定目录--------------------编程问答-------------------- learning。。。
FolderOutput.RootFolder = Environment.SpecialFolder.MyComputer;
FolderOutput.ShowNewFolderButton = true;//显示新建文件夹按钮
if (DialogResult.OK == FolderOutput.ShowDialog())
{
this.TB_Output.Text = FolderOutput.SelectedPath;//显示选定文件夹
}
补充:.NET技术 , C#