Preserve data between application executions

后端 未结 4 1394
长发绾君心
长发绾君心 2020-12-01 17:03

I have an application with some textboxes. My user fills the textboxes and runs some methods, when they close the application data is lost (normally).

I want to ke

4条回答
  •  死守一世寂寞
    2020-12-01 17:20

    There are a couple of options, but with most of them, you're going to be putting a file somewhere, whether it's a text file, resources/config or binary.

    Using settings is one option: http://www.codeproject.com/Articles/17659/How-To-Use-the-Settings-Class-in-C

    You can also take the serialization route: http://msdn.microsoft.com/en-us/library/vstudio/et91as27.aspx

    Or you could possibly look into noSQL databases like MongoDB: http://www.mongodb.org/

提交回复
热议问题