Saving a string to a .setting variable

后端 未结 2 1545
北恋
北恋 2021-01-23 17:50

I\'m trying to save a string variable from my FolderBrowserDialog.SelectedPath().

Using a breakpoint I can see that the string is correctly loaded onto SelectedPath(),

2条回答
  •  情歌与酒
    2021-01-23 18:24

    You must call ...

    Properties.Settings.Default.Save();
    

    Check out Using Settings in C#.

提交回复
热议问题