Set folder browser dialog start location

后端 未结 6 564
长情又很酷
长情又很酷 2020-12-24 11:02

Is there any way to set the initial directory of a folder browser dialog to a non-special folder? This is what I\'m currently using

fdbLocation.RootFolder = Envir         


        
6条回答
  •  情书的邮戳
    2020-12-24 11:42

    Set the SelectedPath property before you call ShowDialog ...

    folderBrowserDialog1.SelectedPath = @"c:\temp\";
    folderBrowserDialog1.ShowDialog();
    

    Will start them at C:\Temp

提交回复
热议问题