Set folder browser dialog start location

后端 未结 6 561
长情又很酷
长情又很酷 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:46

    In my case, it was an accidental double escaping.

    this works:

    SelectedPath = @"C:\Program Files\My Company\My product";
    

    this doesn't:

    SelectedPath = @"C:\\Program Files\\My Company\\My product";
    

提交回复
热议问题