How to save variable values on program exit?

前端 未结 4 1403
攒了一身酷
攒了一身酷 2020-12-31 23:57

I am trying to use an ArrayList to store a variable number of strings, and would like to know how to save the ArrayList and its elements so that my windows form can recall t

4条回答
  •  礼貌的吻别
    2021-01-01 00:20

    You can save the ArrayList (if not ArrayList their are other equivalent classes) using Properties.Settings best part is it allows you the setting variable at Application and user level

    A very good example can be found here how to use Settigns http://www.codeproject.com/Articles/17659/How-To-Use-the-Settings-Class-in-C

提交回复
热议问题