Saving a string to a .setting variable

后端 未结 2 1544
北恋
北恋 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:14

    You need to call Properties.Settings.Default.Save().

    :)

    0 讨论(0)
  • 2021-01-23 18:24

    You must call ...

    Properties.Settings.Default.Save();
    

    Check out Using Settings in C#.

    0 讨论(0)
提交回复
热议问题