Persisting data in the app
-
How do I persist information in an app? I am taking some input from the user in a form and I want to access this information from any form. How do I do it? I am talking about windows forms. Thanks - बुरा जो देखण मै चला, बुरा न िमलया कोय, जो मन खोजा आपणा तो मुझसे बुरा न कोय। Translation
-
How do I persist information in an app? I am taking some input from the user in a form and I want to access this information from any form. How do I do it? I am talking about windows forms. Thanks - बुरा जो देखण मै चला, बुरा न िमलया कोय, जो मन खोजा आपणा तो मुझसे बुरा न कोय। Translation
You could use a config file for it. If the information is complex enough, you can use a database to store the data. The simplest way is to write a class, say Config, to store the configuration settings and then use XML serialization/deserialization to write and read back the data. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
You could use a config file for it. If the information is complex enough, you can use a database to store the data. The simplest way is to write a class, say Config, to store the configuration settings and then use XML serialization/deserialization to write and read back the data. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
S. Senthil Kumar wrote:
The simplest way is to write a class, say Config, to store the configuration settings and then use XML serialization/deserialization to write and read back the data.
Yes, I thought of doing that. Is there no other alternative? I find it a little odd that there is no way I can persist some variables across the windows application in .Net.