Setting the initial directory of an SaveFileDialog?

前端 未结 14 2171
一个人的身影
一个人的身影 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:58

    savefiledialog.InitialDirectory = Application.StartupPath;
    savefiledialog.RestoreDirectory = true;
    

    tested a second ago.

提交回复
热议问题