Setting default folder for openfile dialog

后端 未结 1 1671
南旧
南旧 2021-01-26 19:20

I have a OpenFileDialog and I am trying to set the default folder. Initially I had it set to Environment.GetFolderPath(Environment.SpecialFolder.Personal) + @

相关标签:
1条回答
  • 2021-01-26 19:56

    You're using @"\\....". Either get rid of the @ or change the \\ to \.

    Or, try:

    Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal),"new_folder2")
    
    0 讨论(0)
提交回复
热议问题