Setting the initial directory of an SaveFileDialog?

前端 未结 14 2144
一个人的身影
一个人的身影 2020-12-01 10:05

I\'d like a SaveFileDialog with the following behavior:

  • The first time you open it, it goes to \"My Documents\".

  • Afterwards, it goes to the

14条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 10:44

    If you use forward slash anywhere in your path, InitialDirectory does not work. Make sure they are converted to back slashes

提交回复
热议问题